1
我嘗試使用我的應用程序ALAssetRepresentation
。而當我環OM的圖像有幾個圖像的崩潰應用應用程序崩潰時,你得到fullResolutionImage
for(ALAsset *asset in _assets) {
NSMutableDictionary *workingDictionary = [[NSMutableDictionary alloc] init];
[workingDictionary setObject:[asset valueForProperty:ALAssetPropertyType] forKey:@"UIImagePickerControllerMediaType"];
ALAssetRepresentation *representation = [asset defaultRepresentation];
if (!representation) {
[workingDictionary release];
continue;
}
CGImageRef imageRef = [representation fullResolutionImage];//here the app crash
UIImage *img = [UIImage imageWithCGImage:imageRef];
if (!img) {
[workingDictionary release];
continue;
}
if (!img) {
[workingDictionary release];
continue;
}
[workingDictionary setObject:img forKey:@"UIImagePickerControllerOriginalImage"];
[workingDictionary setObject:[asset valueForProperty:ALAssetPropertyOrientation] forKey:@"orientation"];
[returnArray addObject:workingDictionary];
[workingDictionary release];
}
在此行中我得到的碰撞沒有任何消息:
CGImageRef imageRef = [representation fullResolutionImage];
這是崩潰味精
Program received signal: 「0」.
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
圖片所以需要每大,情侶MB的圖像 – MTA 2012-01-17 13:25:59
這一切都取決於你對它們做了什麼,你是否正在使用它,清理使用的內存(如果你將它添加到任何數組等),然後移動到下一個...? – 2012-01-17 13:29:33
我編輯我的帖子,你可以看到在循環中的變化 – MTA 2012-01-17 13:48:11