开发者

How to add a Navigation Controller to the MainWindow for iPad in Universal Application

开发者 https://www.devze.com 2023-04-05 04:07 出处:网络
I tried to add a NavigationController to the MainWindow_iPad of the Universal Application. placed the Navigation Controller using XIB,

I tried to add a NavigationController to the MainWindow_iPad of the Universal Application. placed the Navigation Controller using XIB, Created a New ViewController (MainViewController) Created instance in the App Delegate , Referenced the Outlet.I changed the field to pop开发者_如何学Python the MainViewController . Bt its not loading properly .The MainWindows loads and it doesnot loads the NavigationController.

I have another problem too . I changed my Project Name for some reason.When I try to launch the application , It launches ,but "applicationDidFinishLaunching" is not invoked.

Whether I missed any configurations ?


First of all, these should probably be two different questions. For the first, in applicationDidFinishLaunching, are you adding the UINavigationController's view to the mainWindow (posting the code of applicationDidFinishLaunching would help) ? For the second question, the MainWindow nib gets launched (either iPad or iPhone). This sets in motion the loading of your application delegate. Did you change the info.plist so that another nib is loaded?

0

精彩评论

暂无评论...
验证码 换一张
取 消