Warning: Attempt to present * on * which is already presenting *, attemptpresenting

Source: Internet
Author: User

Warning: Attempt to present * on * which is already presenting *, attemptpresenting

Warning: Attempt to present (Controller to be presented) on (which controller to presenting) which is already presenting (Controller already presenting)

Self: the controller is presented,

Self. presentingViewController: Let's see who gave self to presenting.

RPLog (@ "% @-% @", self. presentingViewController, [UIApplication sharedApplication]. keyWindow. rootViewController );

Print result: <RPNavigationController: 0x789d0330>-<RPNavigationController: 0x789d0330>

Conclusion: The Controller in poopver is actually provided by the window root controller presenting. Therefore, if you want the window root controller to presenting other controllers, You need to dismiss the original presenting controller first,

Otherwise, the following error occurs:

Warning: Attempt to present <RPNavigationController: 0x790dad10> on <RPNavigationController: 0x78e76c70> which is already presenting <RPRegionViewController: 0x78f76700>

Related Article

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.