2011-12-22 28 views
-3

我正在研究iPad應用程序,需要您的幫助。如何將UISplitView插入到我的一個基於View的應用程序中

其實我想在我的一個基於視圖的應用程序中使用UISplitView。

我的應用程序的流量會像下面:

In main view: 
When i Enter username and password and click Login, On Successfull login it should open the second screen using present model view controller. 
Now on Second Screen there is a Button to goto Mails. When i click on it It should open up the 3rd screen. again pushed using presentModalViewController, which should have a UISplitViewController to show the emails list and when clicking on any email show the detail of that email. 

現在請任何一個可以指導我如何使用uisplitView控制器Viewbased應用模板內。 至少發佈任何使用完整鏈接/源代碼文件。

在此先感謝

+0

嗨,您可以向我們展示您迄今爲止編寫的代碼,或讓我們知道您遇到問題的位置,以便我們瞭解哪裏可以提供幫助? – 2011-12-22 10:28:47

+0

重複的問題。 http://adsackoverflow.com/questions/8601863/how-can-i-add-splitview-to-my-viewbased-app-in-ipad-coding – ader 2011-12-22 10:29:31

+0

Mr.ade其不是重複的問題。 我也有同樣的問題。 但是在基於視圖的應用程序中 – 2011-12-22 10:40:54

回答

0

的SplitViewController必須是RootViewController的。從Apple文檔:

「分割視圖控制器必須始終是您創建的任何接口的根目錄。換句話說,您必須始終將UISplitViewController對象的視圖安裝爲應用程序窗口的根視圖。然後,拆分視圖界面可能包含導航控制器,選項卡欄控制器或任何其他類型的視圖控制器,以實現您的界面。「

因此,如果不編寫自己的容器視圖(在iOS5中)而不是使用Apple的SplitViewController,就無法做到自己想要的功能。

相關問題