任何想法为什么我的代码会崩溃?我正在将NSMutableArray
转换为NSString
,并使用该字符串获取我的UIImageView
的网址。崩溃在NSURL
线。NSMutableArray到NSString到UIImageView代码破解
NSString *imgstring = [imageOne componentsJoinedByString:@""];
NSURL *imageURL = [NSURL URLWithString:imgstring];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
NSData *imageData = [NSData dataWithContentsOfURL:imageURL];
dispatch_async(dispatch_get_main_queue(), ^{
// Update the UI
self.imageview.image = [UIImage imageWithData:imageData];
});
});
从崩溃中发布堆栈跟踪。 – Dex 2014-11-03 03:54:39
至少应包含* exact *和* complete *异常消息以及异常堆栈跟踪以及相关代码。 – 2014-11-03 04:03:04
https://www.dropbox.com/s/mg9ub3xlj2j5afx/Screen%20Shot%202014-11-02%20at%2011.03.35%20PM.png?dl=0 – user2868511 2014-11-03 04:05:26