我已经在我的项目中导入了MWPhotoBrowser类的最后一个版本,但是当浏览器从web加载图像时,应用程序就会崩溃。在实现中,我使用在演示项目中创建的相同代码,如果我显示本地图像,这一切都是可以的。这就是我的实现:
[galleryPhotosArray addObject:[MWPhoto photoWithImage:[UIImage imageNamed:@"Blue_Screen_iPhone.png"]]];
[galleryPhotosArray addObject:[MWPhoto photoWithImage:[UIImage imageNamed:@"Logo_iPhone.png"]]];
[galleryPhotosArray addObject:[MWPhoto photoWithURL:[NSURL URLWithString:@"http://www.cellulare.it/wp-content/uploads/2013/09/apple1.png"]]];
MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
browser.displayActionButton = YES;
browser.displayNavArrows = NO;
browser.wantsFullScreenLayout = YES;
browser.zoomPhotosToFill = YES;
[browser setCurrentPhotoIndex:0];
[self.navigationController pushViewController:browser animated:YES];
[browser release];所以我添加了两个本地图像和一个来自google图像的随机图像。该应用程序在两点崩溃,有时在SDWebImageDownloaderOpere.m中:
self.connection = [NSURLConnection.alloc initWithRequest:self.request delegate:self startImmediately:NO];第二点是SDImageCache.m文件,in - (NSString *)cachePathForKey:(NSString *)key inPath:(NSString *)路径方法有人有此问题吗?
发布于 2013-10-22 20:47:40
我的错误是,我只将ARC支持添加到SDWebImage文件中。
https://stackoverflow.com/questions/19498293
复制相似问题