2009-08-11 177 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。