self.checkCodeBtn.titleLabel.text = [NSString stringWithFormat:@"%zi秒", _time];
[self.checkCodeBtn setTitle:[NSString stringWithFormat:@"%zi秒", _time] forState:UIControlStateNormal];
在setTitle之前添加 titleLabel.text 则可以解决
self.checkCodeBtn.titleLabel.text = [NSString stringWithFormat:@"%zi秒", _time];
[self.checkCodeBtn setTitle:[NSString stringWithFormat:@"%zi秒", _time] forState:UIControlStateNormal];
在setTitle之前添加 titleLabel.text 则可以解决
Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1
违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务