NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"直接进入"];
NSRange strRange = {0,[str length]};
[str addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:strRange];
[self.comingBtn setAttributedTitle:str forState:UIControlStateNormal];
// self.comingLabel.attributedText = str;
时间: 2024-10-08 12:51:34