AGImagePickerController
AGImagePickerController copied to clipboard
Unbalanced calls to begin/end appearance transitions for <AGIPCAssetsController: 0x1534ea20>.
Every time I add ImagePicker I got this message: Unbalanced calls to begin/end appearance transitions for <AGIPCAssetsController: 0x1534ea20>.
What does it mean?
I'm add picker like this:
AGImagePickerController *imagePickerController = [[AGImagePickerController alloc] initWithFailureBlock:^(NSError *error) {
[self dismissModalViewControllerAnimated:YES];
} andSuccessBlock:^(NSArray *info) {
[self dismissModalViewControllerAnimated:YES];
// Start file uploading process
....
}];
imagePickerController.selection = self.selectedPhotos;
[self presentModalViewController:imagePickerController animated:YES];
[imagePickerController release];
I have the same issue
No longer an issue, I was calling presentViewController twice in some cases...
Same issue here. I use AGImagePicker on the iPad.
This code fixes the issue for me:
// Wait for the view controller to show first and hide it after that
double delayInSeconds = 0.1;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
[self dismissViewControllerAnimated:YES completion:nil];
});