_timerBtn.titleLabel.text = [NSString stringWithFormat:@"%ld秒",scondes];
[_timerBtn setTitle:[NSString stringWithFormat:@"%ld秒",scondes] forState:UIControlStateNormal];
两个方法的次序不能改变
_timerBtn.titleLabel.text = [NSString stringWithFormat:@"%ld秒",scondes];
[_timerBtn setTitle:[NSString stringWithFormat:@"%ld秒",scondes] forState:UIControlStateNormal];
两个方法的次序不能改变
本文标题:UIButton-system类型 动态改变title 显示文字
本文链接:https://www.haomeiwen.com/subject/izngqftx.html
网友评论