美文网首页
xib 创建button的坑

xib 创建button的坑

作者: codeing小牛 | 来源:发表于2017-01-11 11:07 被阅读22次

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

2017-01-1111.02.43.png

// 利用button 做倒计时时也需要设置button 的type 为custom 否则更改数据时会有闪烁的效果

相关文章

网友评论

      本文标题:xib 创建button的坑

      本文链接:https://www.haomeiwen.com/subject/iyxuvttx.html