私のiPhoneアプリで、UIImagePickerControllerSourceTypePhotoLibraryをソースタイプとして使用すると、5回開いた後、次のようになります:
<Error>: More than maximum 5 filtered album lists trying to register. This will fail.
私のコンソールでは、選択した画像も消えています。
if ([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 を閉じます。