Quote:
Originally Posted by xishuai
I'm new to coding, and I hope you can help me. I'm using Xcode 4.1, and when I research to problem-solve, the solutions are for a different version.
I successfully built a tableview with all its detail views in one project using a navigation-based template. In another project, I created a map view using a view-based template. Now I need to combine these two projects with a tab bar.
I just read that I should have built the tab base first on a window-based template and deal with the navigation secondarily. Do I have to start over with a window-based template and then code the tab bar part first and navigation controller second? Or should I start fresh with a tab-based template and save some time?
Or, is there an easier way to compile the two projects I already created into a single tab-based application?
|
I have done kind of a same thing recently. It is right that your rootcontroller should be a UITabBarContoller. In the IB in mainwindow you can set the number of tabs and their UIViewControllers/UINavigationControllers. I think you can do these in navigation based app but you have to change the links between the controllers and the AppDelegate. You may want to start a new window based project. But don't delete anything you have done. You may reuse them
Also watch this tutorial it has been really useful for me.
Building an iPhone App Combining Tab Bar, Navigation and Tab - YouTube
If you need more help let me know
best of luck