• Presenting view controllers on detached view controllers is discouraged Warning

    24 July 2015

    Warning :-Presenting view controllers on detached view controllers is discouraged

    To avoid getting the warning in a push navigation, you can directly use :

     [self.view.window.rootViewController presentViewController:viewController animated:YES completion:nil];

    And then in your modal view controller, when everything is finished, you can just call :

    [self dismissViewControllerAnimated:YES completion:nil];


Comments

Comments closed on this post.