文章来源:淘论文网   发布者: 毕业设计   浏览量: 24



还可以点击去查询以下关键词:
[类似]    [太阳]    [定制]    [button]    [类似太阳动定制画button]   

项目介绍:

项目简介
WCLShineButton

类似太阳动画的button

CocoaPods

1在 Podfile 中添加 pod 'WCLShineButton'。

2执行 pod install 或 pod update。

3导入 WCLShineButton。

使用

var param1 = WCLShineParams()
param1.bigShineColor = UIColor(rgb: (153,152,38))
param1.smallShineColor = UIColor(rgb: (102,102,102))
let bt1 = WCLShineButton(frame: .init(x: 100, y: 100, width: 60, height: 60), params: param1)
bt1.fillColor = UIColor(rgb: (153,152,38))
bt1.color = UIColor(rgb: (170,170,170))
bt1.addTarget(self, action: #selector(action), for: .touchUpInside)
view.addSubview(bt1)
详细使用

属性 描述
color button的默认颜色
fillColor button的填充颜色
allowRandomColor 允许shine的颜色随机
animDuration 动画的时间
bigShineColor 大太阳的颜色
enableFlashing 是否需要flash的效果
shineCount 太阳的个数
shineTurnAngle 太阳的旋转角度
shineDistanceMultiple 太阳的扩散范围
smallShineOffsetAngle 小太阳和大太阳之前的偏移角度
smallShineColor 小太阳的颜色
shineSize 大太阳的半径
colorRandom 太阳的颜色的数组
image button的image

github地址:https://github.com/631106979/WCLShineButton

开题报告开题报告


这里还有:


还可以点击去查询:
[类似]    [太阳]    [定制]    [button]    [类似太阳动定制画button]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/7576.docx
  • 上一篇:iOS缓存Swift框架 - Mattress
  • 下一篇:iOS脉冲动画定制 - Pulsator