This warning is sometimes seen when modal jumps
presenting view controllers on detached view controllers is discouraged <picturenewtableviewcontroller: 0x7ff2ba495cc0>.
The reason is that the modal window present out, no longer use the present to eject other child windows
just change the self direct mode jump page to jump from the root controller
For example:
Picdetailviewcontroller *DETAILVC = [[Picdetailviewcontroller alloc] init];
[Self PRESENTVIEWCONTROLLER:DETAILVC animated:yes completion:nil]; Change into
Appdelegate *delegate = (appdelegate *) [uiapplication sharedapplication].delegate;
[Delegate.window.rootViewController PRESENTVIEWCONTROLLER:DETAILVC Animated:yes Completion:nil];
can be
to find the root controller:
method One: It is through the above method, first find appdelegate and then get window properties
Leftslideviewcontroller *ROOTVC = (leftslideviewcontroller*) [(Appdelegate *) [uiapplication sharedApplication]. Delegate Window].rootviewcontroller;
In addition to finding the root controller, this method can find any attributes defined in the Appdelegate class, such as:
Method Two: Directly through Keywindow to find the root controller, more direct
Leftslideviewcontroller *ROOTVC = (leftslideviewcontroller*) [UIApplication sharedapplication]. Keywindow.rootviewcontroller;