Skip to content

Navigation bar disappear issue #1

@girubhai

Description

@girubhai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions