_button.titleLabel.text = [NSString stringWithFormat:@"%d后重发",t];
[_button setTitle:[NSString stringWithFormat:@"%d后重发",t] forState:UIControlStateNormal];
//需要同时设置titleLable的text和title
时间: 2024-10-19 15:55:57
_button.titleLabel.text = [NSString stringWithFormat:@"%d后重发",t];
[_button setTitle:[NSString stringWithFormat:@"%d后重发",t] forState:UIControlStateNormal];
//需要同时设置titleLable的text和title