美文网首页
UIButton文字 标题 闪烁

UIButton文字 标题 闪烁

作者: ___1o_8o | 来源:发表于2016-07-01 13:22 被阅读58次
            self.checkCodeBtn.titleLabel.text = [NSString stringWithFormat:@"%zi秒", _time];
            [self.checkCodeBtn setTitle:[NSString stringWithFormat:@"%zi秒", _time] forState:UIControlStateNormal];

在setTitle之前添加 titleLabel.text 则可以解决

相关文章

网友评论

      本文标题:UIButton文字 标题 闪烁

      本文链接:https://www.haomeiwen.com/subject/gjwfjttx.html