我創建了一個UITabBarController,如下所示,並且推送了一個navigationController,但是現在我無法設置標籤欄項的標題等等,因爲tabbarcontroller是NULL。self.tabBarController爲NULL
請你能告訴我我哪裏出錯了。
UITabBarController *tabBarController = [[UITabBarController alloc] init];
LoggedInFeedNavigationController *lvc = [[LoggedInFeedNavigationController alloc] initWithAccount:account];
[tabBarController setViewControllers:[NSArray arrayWithObject:lvc]];
[tabBarController setSelectedIndex:0];
[self presentModalViewController:tabBarController animated:YES];
[tabBarController release];
[lvc release];
你是如何試圖訪問它? – joshpaul
在LoggedInFeedNavigationController中,self.tabBarController。 –