我在我的項目中使用ELC圖像選擇器。在這裏我得到一個問題是:當選擇了太多圖像時,ELC圖像選擇器出現問題iPhone
當我選擇像20拾取器的圖像工作正常,但是當我選擇圖像像32(選定的圖像數)我的應用程序崩潰之前解僱控制器本身,我得到錯誤:
Program received signal: 「0」. Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib")
而且也是我越來越:
Received memory warning. Level=1
注:當這種情況發生的就是,首先我選擇了32幅圖像工作得很好,並再次我選相同數量的它崩潰圖像。
我也試過這個例子:github ELCImagePickerController project。
任何人都可以給我答案來過來嗎?
感謝您的答覆..但從ELCPickerController我得到圖像路徑廣告「assets-library://asset/asset.PNG?id = 1000000015&ext = PNG」,當我試圖將其轉換爲nsdata我我得到0字節...你能告訴我如何將這個URL轉換爲圖像 –
你可以嘗試像'NSData * data = UIImagePNGRepresentation([UIImage imageWithContentsOfFile:@「assets-library://asset/asset.PNG?id = 1000000015&ext = PNG]);' 可能工作 – cnu
我試過像NSDictionary * dict = [info objectAtIndex:count]; \t \t \t \t \t \t // imageview = [[UIImageView alloc] initWithImage:[dict objectForKey:UIImagePickerControllerOriginalImage]]; (UIImage imageWithContentsOfFile:[NSString stringWithFormat:@「%@」,[dict objectForKey:@「UIImagePickerControllerReferenceURL」]]]);} [ \t \t \t imageview.image = [UIImage imageWithData:data];但獲得0個字節 –