在我的 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。