iPhone4 8.3 系统下字体下方去除下划线

    NSMutableAttributedString *title = [[NSMutableAttributedString alloc] initWithString:@"先去看看"];
   
    NSRange titleRange = {0,[title length]};
    [title addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleNone] range:titleRange];
    _goButton.titleLabel.textColor = LIGHTGRAYTEXT_COLOR;
    _goButton.titleLabel.font = [UIFont systemFontOfSize:12];
    [_goButton setAttributedTitle:title
                         forState:UIControlStateNormal];
原文地址:https://www.cnblogs.com/tian-sun/p/5019999.html