2012-09-19 69 views
0

我遇到了uitabbar的問題。我想在加載該頁面時將其禁用。怎麼做。誰能幫我。我使用的TabBar和添加它作爲工具欄的副視點如何在加載視圖控制器時禁用標籤欄

+0

請詳細說明你的問題 – IronManGill

+0

什麼是頁面上的「加載」?你是否在等待urlrequest?總是有userInteratctionEnabled:方法。 – Martol1ni

+0

你只想要禁用tabBar或完整的視圖.. – Rajneesh071

回答

0

您可以設置它在兩個方面:

  1. 您可以設置其參數「用戶Interction已啓用」,在界面製作工具的詳情unchcked,如果您正在使用它THS方式
  2. 您可以通過編程設置:
-(void) loadView { 
    [super loadView]; 
    tabBar.userInteractionEnabled = NO; 
} 

再經過設置:

-(void) viewDidAppear:(BOOL)animated 
{ 
    [super viewDidAppear:animated]; 
    tabBar.userInteractionEnabled = YES; 
} 
0
viewController.hidesBottomBarWhenPushed = YES; 
[self.navigationController pushViewController:viewController animated:YES]; 

你必須設置hidesBottomBarWhenPushed = YES,你要推到視圖控制器上...... 你必須這樣做,在navigationcontroller和後推前初始化線。

相關問題