码迷,mamicode.com
首页 > 移动开发 > 详细

ios8.0 ipad UIImagePickerController

时间:2014-12-18 18:52:51      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:ios8.0   ipad   uiimagepickercontrol   

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

标签:ios8.0   ipad   uiimagepickercontrol   

原文地址:http://blog.csdn.net/xiao562994291/article/details/42008375

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!