IOS8 IPad warning:attempt to present <uiimagepickercontroller:xxxx > on XXXX which is already presenting (NULL)

Source: Internet
Author: User

Workaround:

     /* I think this was because in IOS 8, alert view and action sheets is actually presented view controllers     (Uialer Tcontroller). So, if you ' re presenting a new view controller in response to an action from the Uialertview,      it ' s being presented WHI Le the uialertcontroller is being dismissed. I worked around this by delaying the presentation of the Uiimagepickercontroller      until the next iteration of the Runlo OP, by doing This:*/__weak typeof (self) weakself = self; [[Nsoperationqueue Mainqueue] addoperationwithblock:^{    [weakself presentviewcontroller:imagepicker animated: YES Completion:nil];}];

However, the proper-to-use-the-to-use-the-new UIAlertController API on IOS 8 (i.e. use ... to if ([UIAlertController class]) test for it). This was just a workaround if you can ' t use the new API yet.

IOS8 IPad warning:attempt to present <uiimagepickercontroller:xxxx > on XXXX which is already presenting (NULL) /p>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.