所以,我想我的應用程序以一個UIViewController開始(沒有看到一個tabbar),然後用導航欄和tabbar輸入一個UITableView。問題是Tabbar是在應用程序啓動時可見的,任何人都可以在此幫助將非常讚賞...如何在應用程序啓動時隱藏一個tabbar?
1
A
回答
0
我認爲你應該發送-presentModalViewController:動畫:使用標籤欄控制器的主UIViewController作爲一個參數或只是這樣做:
[myWindow addSubview: myTabBarController.view];
0
讓您的應用導航應用基礎(而不是基於一個標籤欄),然後在UITableView的添加標籤欄。
有添加的UITabBar here
我做這樣的幫助:在這種情況下,繪製表格視圖和地圖視圖(從Locati應用程序)
tabBarController = [[UITabBarController alloc] init]; // creates your tab bar so you can add everything else to it
searchTableViewController = [[SearchTableViewController alloc] init]; // creates your table view - this should be a UIViewController with a table view in it, or UITableViewController
UINavigationController *searchTableNavController = [[[UINavigationController alloc] initWithRootViewController:searchTableViewController] autorelease];
[searchTableViewController release]; // creates your table view's navigation controller, then adds the view controller you made. Note I then let go of the view controller as the navigation controller now holds onto it
searchMapViewController = [[SearchMapViewController alloc] init];
UINavigationController *mapTableNavController = [[[UINavigationController alloc] initWithRootViewController:searchMapViewController] autorelease];
[searchMapViewController release]; // does exactly the same as the first round, but for your second tab at the bottom of the bar.
tabBarController.viewControllers = [NSArray arrayWithObjects:searchTableNavController, mapTableNavController, nil]; //add both of your navigation controllers to the tab bar. You can put as many controllers on as you like
我發現這很久很久以前。對不起,我不能指出原文。 然後你需要添加tabbarcontoller到相關的視圖([...查看addSubView:tabBarController];)可能首先設置框架。
相關問題
- 1. 如何在啓動時隱藏我的SmartDevice應用程序?
- 2. 隱藏Android應用程序從啓動
- 3. 如何在啓動器中隱藏應用程序?
- 4. 如何在應用程序啓動時自動隱藏iOS權限警報?
- 5. 在應用程序啓動時隱藏NavigationDrawer
- 6. 隱藏Java應用程序啓動的窗口應用程序?
- 7. 在Cocoa中,如何在應用程序啓動時隱藏窗口?
- 8. 隱藏TabBar時推
- 9. win32 DialogBox應用程序:如何使對話框在啓動時隱藏?
- 10. 如何在全屏應用程序啓動時隱藏系統覆蓋窗口?
- 11. 隱藏應用程序啓動時刪除旋轉球
- 12. 如何隱藏在應用程序啓動的應用程序圖標和其他應用程序
- 13. 如何在啓動tabbar應用程序時添加簡單的viewcontroller
- 14. 的TabBar隱藏徽章時Tabbaritem感動
- 15. 隱藏在Dot Net Compact Framework中的啓動應用程序
- 16. 如何在加載視圖時隱藏tabbar動作?
- 17. 可可:在應用程序啓動時隱藏textview的自定義滾動條
- 18. 在Android中的自定義啓動器應用程序中隱藏啓動器應用程序的活動
- 19. 在啓動時啓動應用程序
- 20. 在啓動時啓動應用程序
- 21. 如何在自動啓動時隱藏MFC啓動畫面?
- 22. 如何在應用程序啓動時自動啓動Delayed_Job?
- 23. 如何在Windows啓動時自動啓動應用程序?
- 24. 如何在應用程序啓動時「自動」啓用GPS?
- 25. 如何在TabNavigator中隱藏TabBar文本?
- 26. UWP如何隱藏應用程序?
- 27. 如何隱藏應用程序名稱?
- 28. 如何隱藏我的應用程序?
- 29. 如何隱藏一個「Java桌面應用程序」
- 30. 如何在Android應用程序啓動時啓動服務?
是的,我的應用程序是一個基於導航的應用程序,主窗口調用帶tabbar和導航欄的UITableView,我認爲這就是爲什麼tabbar顯示在啓動視圖(它是UIViewController)的原因。它將不勝感激,如果你可以張貼一些示例代碼.. – Georg 2010-04-04 10:39:28
我的應用程序是一個基於TabBar的應用程序,這是加載一個UIView沒有tabbar控制器可見? – Georg 2010-04-05 14:43:54
是的。製作基於視圖的應用程序。將標籤欄添加到您想要標籤欄的屏幕上。 – Andiih 2010-04-06 13:17:20