堆栈:(0xb1771f 0xb4f602 0x58e62 0x90ec4a24 0x90eb6cf2 0x90eb6781 0x90eb65c6)
2012-01-31 19:58:10.920 FINS [7353:560f] * _NSAutoreleaseNoPool():类NSConcreteData的对象0x708e000自动释放,没有池到位 - 只是泄漏
//表格背景上的图像代码
dispatch_queue_t concurrentQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
//this will start the image loading in bg
dispatch_async(concurrentQueue, ^{
NSData *image = [[[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:NewsImagestring]] autorelease];
//this will set the image when loading is finished
dispatch_async(dispatch_get_main_queue(), ^{
imgView.image = [UIImage imageWithData:image];
[image release];
[imgView release];
});
});
答案 0 :(得分:0)
您正在发布自动释放池中的图像。所以这会让你的应用程序崩溃。再次评论此行。