在appDelegate.m我创建navigationController
initWithRootviewcontroller
所以,当我的应用程序启动UIViewController
负荷与navigationController
,我想在UIViewController
的底部显示此navigationBar
的navigationController
的。但是通过这个代码,它显示在最上面的事件中,即使定义了框架。的UINavigationController的UIViewController中的底部持有多个视图
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
_window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIViewController *myViewController = [[MainViewController alloc] init];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:myViewController];
navigationController.navigationBar.tintColor = [UIColor blackColor];
[navigationController.navigationBar setFrame:CGRectMake(0, 435, 320,25)];
_window.rootViewController = navigationController;
[_window makeKeyAndVisible];
return YES;
}
任何人都知道如何在UIViewController
底部显示navigationcontroller。
感谢您的帮助。
苹果不会喜欢你的应用程序。 – TigerCoding 2012-02-11 21:45:42