我知道这个话题 existed before , 但由于仅出现在 iOS5 beta 6 中而被关闭。 现在我的手机上安装了 iOS 5 的 Golden Master,但仍然出现该错误。
当我使用 UIImagePickerControllerSourceTypePhotoLibrary 的 sourceType 创建 UIImagePickerController 超过 5 次时,就会发生这种情况。据我所知,我每次都正确地创建和释放以前的 UIImagePickerController。
编辑:根据要求添加代码。
UIImagePickerController *ipc = [[UIImagePickerController alloc] init];
ipc.delegate = self;
ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:ipc animated:YES];
[ipc release];
稍后,当 -imagePickerController:didFinishPickingImage:editingInfo: 被调用时,我调用 [self dismissModalViewControllerAnimated:YES];。
最佳答案
问题发生在 Apple 示例中,因此最好的办法是忽略。
关于iOS 5 GM : <Error>: More than maximum 5 filtered album lists trying to register. 这将失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7689119/