首页 > 代码库 > ios8.0 ipad UIImagePickerController

ios8.0 ipad UIImagePickerController

Warning:Attempt to present <UIImagePickerController:0x7c0ae400> on <CAGUCreateContactViewController:0x7bf61a00> which is already presenting (null)

解决办法

if([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0)
{
    [[NSOperationQueue mainQueue] addOperationWithBlock:^{

        [self presentViewController:cameraUI animated:NO completion:nil];
    }];

}
else{

    [controller presentViewController:cameraUI animated:NO completion:nil];
}

ios8.0 ipad UIImagePickerController