iOS-Slide-Menu
iOS-Slide-Menu copied to clipboard
Menu is closed when call presentViewController from LeftMenu in IOS 9
I have some code in Left view controller
UIViewController *vc =[UIViewController new];
vc.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(dissmis:)];
[[SlideNavigationController sharedInstance] presentViewController:[[FCNavigationViewController alloc] initWithRootViewController:vc] animated:YES completion:nil];
- (void) dissmis:(id)sender
{
[[SlideNavigationController sharedInstance] dismissViewControllerAnimated:YES completion:nil];
}
when I call dissmis: menu was closed and had a frozen state.
I found solution Need to set up modalPresentationStyle = UIModalPresentationOverFullScreen for FCNavigationViewController