0
- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    MyAuraAppDelegate *delegate = (MyAuraAppDelegate *) [[UIApplication sharedApplication] delegate];
    // PeopleMasterViewController *peopleMasterViewControl = [[PeopleMasterViewController alloc] initWithNibName:nil bundle:nil];

    NSArray *viewsToRemove = [delegate.window subviews];
    for (InfiniTabBar *v in viewsToRemove) 
    {
        [v setHidden: YES];
    }  

}

但在显示另一个视图之前,它给了我一小段时间黑屏。如何去除黑屏?

4

2 回答 2

1

只需删除自定义标签栏

NSArray *viewsToRemove = [delegate.window subviews];
for (InfiniTabBar *v in viewsToRemove) 
{
    if ([v isKindOfClass:[InfiniTabBar class]]) {
        [v setHidden: YES];
    }
}  
于 2012-06-29T11:54:22.753 回答
0

尝试将您的代码移入viewWillAppear:,以便它发生在屏幕更新时间附近。

于 2012-06-29T11:39:57.633 回答