视图变换工具 Pulsing Halo

软件介绍

Pulsing Halo是CALayer的子集。

Img_8729

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里面的半径和颜色:

本文地址:https://codercto.com/soft/d/8966.html

Probability and Computing: Randomization and Probabilistic Techn

Probability and Computing: Randomization and Probabilistic Techn

Michael Mitzenmacher、Eli Upfal / Cambridge University Press / 2017-7-3 / USD 62.23

Greatly expanded, this new edition requires only an elementary background in discrete mathematics and offers a comprehensive introduction to the role of randomization and probabilistic techniques in m......一起来看看 《Probability and Computing: Randomization and Probabilistic Techn》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具