Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation bar disappear issue #1

Open
girubhai opened this issue May 27, 2016 · 0 comments
Open

Navigation bar disappear issue #1

girubhai opened this issue May 27, 2016 · 0 comments

Comments

@girubhai
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant