2009-08-11 218 views
0

我有以下代碼來設置並切換到ABPeoplePickerNavigationController。顯示ABPeoplePickerNavigationController時隱藏標籤欄?

ABPeoplePickerNavigationController *peoplePicker = [ 
     [ABPeoplePickerNavigationController alloc] init 
    ]; 
    peoplePicker.peoplePickerDelegate = self; 

    window = [[[currentView superview] superview] superview];  
    [window addSubview:[peoplePicker view]]; 
    [[[peoplePicker view] layer] addAnimation:animation forKey:@"nav"]; 

它正在切換的視圖由UITabBarController控制。我會阻止顯示標籤欄,而PeoplePicker是活動視圖,但到目前爲止,我還沒有運氣。我已經查看了hidesBottomBarWhenPushed,但由於我無法推動導航控制器,因此這沒有幫助。我還可以做些什麼?

回答

1

嘗試的UITabBarController對象上調用

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated 

。這應該會導致ABPeoplePickerNavigationController填充整個窗口,隱藏TabBar。