xib 创建的button如果用到selected 这个属性的话,设置
button.selected = YES ;时默认会有蓝色的tintColor 解决方法
xib 文件中选中button 设置type 为custom

// 利用button 做倒计时时也需要设置button 的type 为custom 否则更改数据时会有闪烁的效果
xib 创建的button如果用到selected 这个属性的话,设置
button.selected = YES ;时默认会有蓝色的tintColor 解决方法
xib 文件中选中button 设置type 为custom
// 利用button 做倒计时时也需要设置button 的type 为custom 否则更改数据时会有闪烁的效果
本文标题:xib 创建button的坑
本文链接:https://www.haomeiwen.com/subject/iyxuvttx.html
网友评论