您的当前位置:首页正文

UIButton文字 标题 闪烁

来源:华拓网
            self.checkCodeBtn.titleLabel.text = [NSString stringWithFormat:@"%zi秒", _time];
            [self.checkCodeBtn setTitle:[NSString stringWithFormat:@"%zi秒", _time] forState:UIControlStateNormal];

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