我有問題隱藏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