You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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 asUIStoryboard *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
toUINavigationController
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
fromUINavigationController
And when I remove this line,then it works but navigation bar disappeared.
The text was updated successfully, but these errors were encountered: