Pulsing Halo <a href="https://github.com/shu223/PulsingHalo#radius"></a>半径<a href="https://github.com/shu223/PulsingHalo#color"></a>颜色<a href="https://github.com/ 视图变换工具

程序名称:Pulsing Halo <a href="https://github.com/shu223/PulsingHalo#radius"></a>半径<a href="https://github.com/shu223/PulsingHalo#color"></a>颜色<a href="https://github.com/

授权协议: MIT

操作系统: iOS

开发语言: Objective-C

Pulsing Halo <a href="https://github.com/shu223/PulsingHalo#radius"></a>半径<a href="https://github.com/shu223/PulsingHalo#color"></a>颜色<a href="https://github.com/ 介绍

Pulsing Halo是CALayer的子集。

It is useful for:

  • iBeacon
  • annotions in MapKit

用法:

  1. 在你的项目中加入PulsingHaloLayer.h,m ;
  2. 初始化然后添加到你的视图;

    PulsingHaloLayer *halo = [PulsingHaloLayer layer];
    halo.position = self.view.center;
    [self.view.layer addSublayer:halo];

自定义设置

半径

使用半径属性:

self.halo.radius = 240.0;

颜色

使用背景颜色属性:

UIColor *color = [UIColor colorWithRed:0.7
                                 green:0.9
                                  blue:0.3
                                 alpha:1.0];

self.halo.backgroundColor = color.CGColor;

动画周期:

使用动画周期或者脉冲间隔属性:

样板

你可以尝试修改样板app里面的半径和颜色:

Pulsing Halo <a href="https://github.com/shu223/PulsingHalo#radius"></a>半径<a href="https://github.com/shu223/PulsingHalo#color"></a>颜色<a href="https://github.com/ 官网

https://github.com/shu223/PulsingHalo

相关编程语言

Acapela TTS 是一个为 iPhone 和 iPad 开发的 TTS 引...
二维码(QR Code)扫描静态库,扫描效率较高。
RegexKitLite 是一个轻量级的 Objective-C 的正则表...
一款基于ASIHttpReques开源的仿迅雷多线程断点续传功...
实现动态检测网络(wifi)状况,不需要用户手动刷新...
使用iphoneSDK官方NSXMLParserDelegate做的简单xml解...