虽然我试图在基于横向的应用程序 ios6 应用程序中添加导航控制器,但它仅在图像中以纵向模式显示,我应该做些什么改变?
在应用程序委托文件编码中,
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
navigationController = [[UINavigationController alloc] initWithRootViewController:self.viewController];
[self.window addSubview:[navigationController view]];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];