在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:shu223/PulsingHalo开源软件地址:https://github.com/shu223/PulsingHalo开源编程语言:Objective-C 96.8%开源软件介绍:PulsingHaloPulsingHalo has been discontinued, and is no longer being maintained. Please check out Pulsator which is the new version of this written with Swift. iOS component for creating a pulsing animation. It allows you to create halos. Great For:
InstallationCocoaPodsAdd into your Podfile.
Then CarthageAdd into your Cartfile.
Then ManualAdd PulsingHaloLayer.h,m into your project. How to useJust initiate and add to your view layer. Swiftlet halo = PulsingHaloLayer()
halo.position = view.center
view.layer.addSublayer(halo)
halo.start() Objective-CPulsingHaloLayer *halo = [PulsingHaloLayer layer];
halo.position = self.view.center;
[self.view.layer addSublayer:halo];
[halo start]; CustomizationsNumber of HalosUse halo.haloLayerNumber = 3; radiusUse self.halo.radius = 240.0; colorUse UIColor *color = [UIColor colorWithRed:0.7
green:0.9
blue:0.3
alpha:1.0];
self.halo.backgroundColor = color.CGColor; animation durationUse animation repeat countInitialize using animation key values and timesUse properties enable/disable timing function for animationUse property DemoYou can try to change the radius and color properties with demo app. Special ThanksInspired by SVPulsingAnnotationView. AuthorShuichi Tsutsumi iOS freelancer in Japan. Welcome works from abroad!
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论