SlideMenuControllerOC icon indicating copy to clipboard operation
SlideMenuControllerOC copied to clipboard

Navigation bar disappear issue

Open girubhai opened this issue 8 years ago • 0 comments

Hi,As given in sample code,to navigate another view controller there is code as case LeftMenuSwift: [self.slideMenuController changeMainViewController:self.swiftViewController close:YES]; break; and the SwiftViewController defined as

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; SwiftViewController *swiftViewController = (SwiftViewController *)[storyboard instantiateViewControllerWithIdentifier:@"SwiftViewController"]; self.swiftViewController = [[UINavigationController alloc] initWithRootViewController: swiftViewController];

In above line you did set initWithRootViewController to UINavigationController but what to do if I use navigation controller already in stroyboard. To be more precise,when I used vpViewController = [[UINavigationController alloc] initWithRootViewController: vpViewController]; then it gives error that invalid pointer type assigning to vpViewController from UINavigationController And when I remove this line,then it works but navigation bar disappeared.

girubhai avatar May 27 '16 05:05 girubhai