Boom Floresca
Boom Floresca

Reputation: 25

UINavigationController not showing

Have your encounter this issue, the UInavigationController is not showing.. here's my code..

eSigHomeViewController *controller = [[eSigHomeViewController alloc] initWithNibName:@"eSigHomeViewController" bundle:[NSBundle mainBundle]];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:controller];
self.navigationController.navigationBarHidden = YES;
self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

// Override point for customization after application launch.
[self.window addSubview:self.navigationController.view];
self.window.backgroundColor = [UIColor clearColor];
[self.window makeKeyAndVisible];

Do, i missed something.. Hope you can provide some assistance..

Thanks,

Nestea

Upvotes: 2

Views: 995

Answers (2)

Misha Karpenko
Misha Karpenko

Reputation: 2186

Seems like you're missing

self.window.rootViewController = self.navigationController;

Upvotes: 0

Shmidt
Shmidt

Reputation: 16664

Remove this line self.navigationController.navigationBarHidden = YES; if you want to see navigation bar.

Upvotes: 2

Related Questions