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>