Presenting view controllers on detached view controllers is discouraged <callviewcontroller:0x14676e240>.

Source: Internet
Author: User

When you optimize your app today, you find that the program appears with this warning: "

Presenting view controllers on detached view controllers is discouraged <callviewcontroller:0x14676e240>.

First of all, I'm trying to tell you that this problem occurs when a popup is not in the network

When checking the information on the Internet, this error occurs when the current controller has present a view and then present a view. But in my project the current page has no second present at all, so there is no present multiple views. By groping, I solve the problem in this way:

The present operation will be executed in the thread and it will be OK.

However, although the problem is solved, but I do not know what the cause of this, is not supposed to present operation in the thread is also right, because there is no present operation, I am very tangled, I hope there is a solution to this problem, and see my summary of the great God know!

Presenting view controllers on detached view controllers is discouraged <callviewcontroller:0x14676e240>.

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.