在定時(shí)器中修改button的標(biāo)題,發(fā)現(xiàn)UIButton會(huì)不斷閃爍,
解決方法:
_reSendButton.titleLabel.text = str ; //在前
[_reSendButton setTitle:str forState:UIControlStateNormal]; //在后
將這2句都寫上就好了
在定時(shí)器中修改button的標(biāo)題,發(fā)現(xiàn)UIButton會(huì)不斷閃爍,
解決方法:
_reSendButton.titleLabel.text = str ; //在前
[_reSendButton setTitle:str forState:UIControlStateNormal]; //在后
將這2句都寫上就好了