0
NSMutableParagraphStyle *paragraph=[[NSMutableParagraphStyle 
defaultParagraphStyle] mutableCopy];

[paragraph setLineBreakMode:NSLineBreakByCharWrapping];

NSDictionary *attrs = [NSDictionary dictionaryWithObjectsAndKeys:FONT_14, NSFontAttributeName, NSParagraphStyleAttributeName, paragraph,nil];
CGRect nvoiceStateSize = [tips boundingRectWithSize:line3size
                                 options:(NSStringDrawingTruncatesLastVisibleLine|NSStringDrawingUsesLineFragmentOrigin| NSStringDrawingUsesFontLeading)
                              attributes:attrs
                                 context:nil];

它在执行 boundingRectWithSize 时崩溃:

4

0 回答 0