0
我在我的項目中導入了MWPhotoBrowser類的最新版本,但是當瀏覽器加載圖像形成web時,應用程序崩潰。在實現中,我使用與演示項目中創建的代碼相同的代碼,如果我顯示本地圖像,則一切正常。這是我的實施:MWPhotoBrowser崩潰
[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];
所以我添加兩個本地圖像和谷歌圖像的隨機圖像。應用程序崩潰在兩個點,有時在SDWebImageDownloaderOperation.m在這條線:
self.connection = [NSURLConnection.alloc initWithRequest:self.request delegate:self startImmediately:NO];
所述第二點是在SDImageCache.m文件,在 - (的NSString *)cachePathForKey:(的NSString *)鍵INPATH:(的NSString *)路徑方法 有人有這個問題?