很多应用中发短信倒计时功能,一般都会将NSTimer与UIButton结合来实现此功能,如果UIButton是这么初使化的:会有闪烁现象,
let button = UIButton(type: UIButtonType.System)
将UIButtonType.System更改为UIButtonType.Custom即可
let button = UIButton(type: UIButtonType.Custom)
如果为 xib方式则这样更改
很多应用中发短信倒计时功能,一般都会将NSTimer与UIButton结合来实现此功能,如果UIButton是这么初使化的:会有闪烁现象,
let button = UIButton(type: UIButtonType.System)
将UIButtonType.System更改为UIButtonType.Custom即可
let button = UIButton(type: UIButtonType.Custom)
如果为 xib方式则这样更改