我有一个问题,我希望你能帮助我。IOS NSMutableAttributedString崩溃EXC_BAD_ACCESS
我用在UILabel
加载HTML,但所有的时间上
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
self.attrStr = [[NSMutableAttributedString alloc] initWithData:[desc dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
});
应用程序崩溃我尝试添加dispatch_async
,但什么都没有改变。
所以请帮助我,
无视回答我是不正确的,你可以为对象。就像我说过的,我不用太多 – 2014-11-22 09:12:42
发布完整的堆栈跟踪。 – trojanfoe 2014-11-22 11:07:56