修改UIButton的title会闪烁一下
2017-06-27 本文已影响103人
一季_又一寂
在定时器中修改button的标题,发现UIButton会不断闪烁,
解决方法:
_reSendButton.titleLabel.text = str ; //在前
[_reSendButton setTitle:str forState:UIControlStateNormal]; //在后
将这2句都写上就好了
在定时器中修改button的标题,发现UIButton会不断闪烁,
解决方法:
_reSendButton.titleLabel.text = str ; //在前
[_reSendButton setTitle:str forState:UIControlStateNormal]; //在后
将这2句都写上就好了