Objective c NSMutableAttributedStrring';s下划线正在从底部剪切一些字符

Objective c NSMutableAttributedStrring';s下划线正在从底部剪切一些字符,objective-c,ios9,nsmutableattributedstring,Objective C,Ios9,Nsmutableattributedstring,我用下面的代码给文本加下划线 NSMutableAttributedString *unserlineText = [[NSMutableAttributedString alloc] initWithString:@"yyyy JJJJ gggggg"]; [unserlineText addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnde

我用下面的代码给文本加下划线

NSMutableAttributedString *unserlineText = [[NSMutableAttributedString alloc] initWithString:@"yyyy JJJJ gggggg"];
[unserlineText addAttribute:NSUnderlineStyleAttributeName
                      value:[NSNumber numberWithInteger:NSUnderlineStyleSingle]
                      range:NSMakeRange(0, [unserlineText length])];
但是结果字符串的下划线被像“y”和“g”这样的字符从底部剪掉。你可以在这里看到结果


我们可以在文本和下划线之间添加一些垂直空格。

这是英语中下划线的典型外观。如果下划线再低一点,那就不寻常了。下降者应该穿透它。