在定时器中修改button的标题,发现UIButton会不断闪烁,
解决方法:
_reSendButton.titleLabel.text = str ; //在前
[_reSendButton setTitle:str forState:UIControlStateNormal]; //在后
将这2句都写上就好了
在定时器中修改button的标题,发现UIButton会不断闪烁,
解决方法:
_reSendButton.titleLabel.text = str ; //在前
[_reSendButton setTitle:str forState:UIControlStateNormal]; //在后
将这2句都写上就好了
本文标题:修改UIButton的title会闪烁一下
本文链接:https://www.haomeiwen.com/subject/rmkecxtx.html
网友评论