Reputation: 25
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
Reputation: 2186
Seems like you're missing
self.window.rootViewController = self.navigationController;
Upvotes: 0
Reputation: 16664
Remove this line self.navigationController.navigationBarHidden = YES;
if you want to see navigation bar.
Upvotes: 2