我有问题隐藏tabbar。 这是我的代码隐藏表格视图单元格上的tabbar点击
//this created in the Delegate.m file
-(void)HideTabBar
{
mTabController.hidesBottomBarWhenPushed =YES;
}
//Now i want to this on the cell select Tab bar must hide when it go to the map view (other view) for that i use this but its working
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
JourneyAppDelegate * journey = (JourneyAppDelegate *)[[UIApplication sharedApplication]delegate];
[journey HideTabBar];
}
But
它的工作如何能做到这一点
@ user420220:在设置属性** hidesBottomBarWhenPushed **之后,您是否在推动视图控制器** mTabController **,因为在您按下它之前它不会隐藏。 – 2011-04-18 06:18:47
但现在我的另一个问题来了。我添加这个tabbar一个arrowbar。我也隐藏这样 - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {self.hidesBottomBarWhenPushed = YES; JourneyAppDelegate * journeyarrow =(JourneyAppDelegate *)[[UIApplication sharedApplication] delegate]; journeyarrow.tabBarArrow.hidden = YES;}它工作正常,当我来到这个页面,但当回到主视图的标签显示,但箭头栏不是.HOw可以slove thi – Harish 2011-04-18 07:43:16