簡體   English   中英

顯示ABPeoplePickerNavigationController時隱藏標簽欄?

[英]Hide the tab bar when displaying the 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,但是由於我無法推送導航控制器,因此它沒有幫助。 我還可以做些什么?

嘗試致電

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

在您的UITabBarController對象上。 這將導致ABPeoplePickerNavigationController填充整個窗口,從而隱藏TabBar。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM