簡単なクエリが 1 つあります。UIButton のテキストと色に下線を引く必要があります。uibutton の下線テキストがありますが、色合いに関しては機能しません。xib から色合いを設定しましたが、そこから取得していません。以下は私のコードです。
NSMutableAttributedString *commentString = [[NSMutableAttributedString alloc] initWithString:@"Testing"];
[commentString addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:NSMakeRange(0, [commentString length])];
[_helpWithLoginLabel setAttributedTitle:commentString forState:UIControlStateNormal];