2012-03-07 61 views
0

我使用XCode4中的「主細節」模板創建了我的IOS 5項目。這個模板給你一個導航控制器。在某個時候,我意識到我想爲此應用程序添加一個標籤欄。所以我想保留導航控制器,但我想添加標籤欄。有人可以總結如何做到這一點,或者可能指導我找到一個好的資源來研究這是如何完成的?IOS - 如何將標籤欄添加到導航控制器(主細部模板)?

謝謝!

回答

3

將一個標籤欄添加到導航控制器可能會導致您的應用程序被拒絕從應用程序商店。從設計準則:

When combining these two types of view controller in the same user interface, the tab bar 
controller always acts as the wrapper for the navigation controllers. You never want to 
push a tab bar controller onto the navigation stack of a navigation controller. Doing so 
creates an unusual situation whereby the tab bar appears only while a specific view 
controller is at the top of the navigation stack. Tab bars are designed to be persistent, 
and so this transient approach can be confusing to users. 

的導航控制器應加一個標籤欄代替。

+0

我明白了。我希望標籤欄持久。那麼轉換爲標籤欄應用程序最痛苦的方式是什麼? – Nick 2012-03-07 03:53:44

相關問題