在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