- [NSParagraphStyle isEqualToString:]:在iOS10.3中发送到实例0x1702b2480的无法识别的选择器

时间:2017-04-17 03:44:26

标签: ios10.3

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:

时崩溃了

0 个答案:

没有答案