2

遇到这个问题,UInavigationController 没有显示.. 这是我的代码..

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];

做,我错过了一些东西..希望你能提供一些帮助..

谢谢,

雀巢

4

2 回答 2

2

self.navigationController.navigationBarHidden = YES;如果您想查看导航栏,请删除此行。

于 2013-01-11T12:29:30.793 回答
0

好像你不见了

self.window.rootViewController = self.navigationController;
于 2013-01-11T12:31:07.753 回答