Open lakshmibomma opened 8 years ago
I have same issue. I have a main ViewController and left menu ViewController, now, at left menu controller have a button, when user click the button, want to present a login view controller from appdelegate.window.rootviewcontroller. But in fact the interface is block on the left menu controller...
Add at presented VC something like :
well.. I found a way to present:
The first step: In the SlideNavigationController.m, add this code:
- (void)presentViewController:(UIViewController *)viewControllerToPresent animated:(BOOL)flag completion:(void (^)(void))completion
{
[super presentViewController:viewControllerToPresent animated:flag completion:completion];
}
The second step: in your left menu controller or root view controller, use this:
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main"
bundle: nil];
LoginViewController *viewController = (LoginViewController *)[mainStoryboard instantiateViewControllerWithIdentifier: @"LoginViewController"];
[[SlideNavigationController sharedInstance] presentViewController:viewController animated:YES completion:nil];
it donsnt have navigation controller . is there any option for that ??
how to present view controller modally on main view..not on navigation controller left view.. I am trying to present view controller modally on right view controller..but background view is left view always..and also getting error view is not in the window hierarchy...please help me