How to use UIImagePickerController in iPad?

后端 未结 4 978
太阳男子
太阳男子 2020-12-01 12:34

Hi i am working on a universal application (iPhone/iPad). one feature is that i have to select a photo from album and show it on UIImageView.

Now problem is that it

4条回答
  •  一生所求
    2020-12-01 13:10

    POST iOS 8: Try adding popOver controller in

    [[NSOperationQueue mainQueue] addOperationWithBlock:^{ }];

    Reason : This is because in iOS 8, alert views and action sheets are actually presented view controllers (UIAlertController). So, if you're presenting a new view controller in response to an action from the UIAlertView, it's being presented while the UIAlertController is being dismissed. You need to do it on main queue without disturbing the navigation.

提交回复
热议问题