我是新來的iphone development.Currently我使用標籤式應用程序模板包含4個選項卡,其中一個是有表視圖和單擊表格單元格的項目列表做一個項目,我想給一個說明page.I知道導航必須使用,我成功地提出了導航,但現在的問題是我想在細節頁面的標籤欄也。但在我的它不來。 現在我使用此代碼,以使導航如何在導航中使用標籤欄?
在的appdelegate didfinishlaunching
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
UIViewController *viewController1 = [[[cardsAvailable1 alloc] initWithNibName:@"cardsAvailable1" bundle:nil] autorelease];
UIViewController *viewController2 = [[[fetchcard1 alloc] initWithNibName:@"fetchcard1" bundle:nil] autorelease];
UIViewController *viewController3 = [[[registration alloc] initWithNibName:@"registration" bundle:nil] autorelease];
UIViewController *viewController4 = [[[logintab alloc] initWithNibName:@"logintab" bundle:nil] autorelease];
self.tabBarController = [[[UITabBarController alloc] init] autorelease];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2,viewController3,viewController4, nil];
self.tabBarController.selectedIndex = 3;
navigationController = [[UINavigationController alloc]
initWithRootViewController:self.tabBarController];
self.window.rootViewController = self.tabBarController;
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
[self.navigationController pushViewController:self.detailViewExample動畫:YES];
和對選擇
什麼是做了正確的方法導航? 任何人都可以建議我解決這個問題嗎?
感謝它的工作原理下面的代碼... :-) – user1288402 2012-03-28 13:29:23