在我的iPhone應用程序,當我使用UIImagePickerControllerSourceTypePhotoLibrary作爲源類型,打開它5次後,我得到:從照片庫多次獲取圖像顯示錯誤
<Error>: More than maximum 5 filtered album lists trying to register. This will fail.
我console.And
也拾取的圖像消失了。
如果([的UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary] == YES){
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
}
而在方法:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
我駁回modalviewController。
顯示你的代碼! –