我目前正在使用以下方法获取标签所需的高度+(CGFloat)getHeightOfLabel:(NSString*)textofFontSize:(CGFloat)fontSizewithConstraint:(CGSize)constraint{CGSizesize=[textsizeWithFont:[UIFontsystemFontOfSize:fontSize]constrainedToSize:constraintlineBreakMode:UILineBreakModeWordWrap];returnsize.height;}这在大多数情况下都有效,但是,有些字符串混合了粗