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>.