我有一个名为gtabbar的塔巴尔类,其项目是在appdelegate类中定义的。塔巴尔在第1 xib中显示。当我单击一个按钮时,然后移动到另一个XIB。当它移至Arther Xib时,我需要隐藏Tabbar。那我该怎么做呢?请用示例代码回答。
尝试此
-(void)viewWillDisappear:(BOOL)animated {
tabBarHolder.hidden = YES;
[super viewWillDisappear:animated];
}
或尝试此
UIViewController *newView = [[show_list_inhabitants alloc] initWithNibName:@"show_list_inhabitants" bundle:nil];
tabBarHolder.hidden = YES;
[self.navigationController pushViewController:newView animated:NO];