我正在使用基於視圖的簡單iPhone應用程序。 從應用程序的主屏幕,您可以導航到4個不同的視圖。 其中一個視圖由標籤欄組成。 因爲這不是我使用一個沒有UITabController的解決方法的正常方法。如何隱藏基於視圖/標籤欄應用程序中的標籤欄
要做到這一點,我利用了這個話題: https://discussions.apple.com/thread/2099944?start=0&tstart=0
而這個示例代碼: http://pymbian.svn.sourceforge.net/svnroot/pymbian/stuff/testtab_raynewbie/Classes/
通過一些小的修改工作的。 只有當我想從標籤視圖返回到主視圖時,我有最後一個錯誤,標籤欄停留在屏幕底部。
我嘗試了這裏描述的幾種方法。
myTabBar.hidden = YES
hidesBottomBarWhenPushed = YES
但似乎沒有工作.... 我認爲這個問題是在意見UI控制器的結構奇特的地方。因爲現在結構看起來像這樣。
MainViewController
- ViewController with TabBar
- tab1viewcontroller
- tab2viewcontroller
- other viewcontrollers
和重返主視圖在tab1viewcontroller,我不能做任何事情的TabBar完成。在所有其他觀點,我回去這個代碼:
-(IBAction) BackAction:(id)sender {
mainControllerView = [[MainControllerView alloc] initWithNibName:@"MainControllerView" bundle:nil];
[self.view addSubview:mainControllerView.view];
[mainControllerView.view release];
}
任何想法?
我有同樣的probem花花公子.U有什麼解決方案?如果你知道任何事情PLZ解釋謝謝。 –