2012-06-29 37 views

回答

1

最後創建一個自定義類爲我的TabBarController,這樣做,

- (void)navigationController:(UINavigationController *)navigationController 
     willShowViewController:(UIViewController *)viewController 
        animated:(BOOL)animated { 

    UINavigationBar *morenavbar = navigationController.navigationBar; 
    UINavigationItem *morenavitem = morenavbar.topItem; 
    /* We don't need Edit button in More screen. */ 
    morenavitem.rightBarButtonItem = nil; 
} 

這解決了這個問題。

12

將tabBarController的customizableViewControllers設置爲nil。

tabBarController.customizableViewControllers = nil; 
+0

這需要在tabBarController上設置選項卡後完成,如果您更改它們 – Jarada

+1

但是如果您正在使用類似問題的故事板問的問題,那麼在哪裏添加此選項? –

相關問題