Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 12-30-2011, 04:20 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 1
xishuai is on a distinguished road
Default Combining a navigation-based app and a view-based app into one project with tab bar?

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?
xishuai is offline   Reply With Quote
Old 01-04-2012, 02:21 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 30
denin is on a distinguished road
Default

Quote:
Originally Posted by xishuai View Post
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
denin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 454
15 members and 439 guests
7twenty7, brandon6031, David-T, Dj_kades, Elad, HemiMG, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, Pauluz85, QuantumDoja, sacha1996, smithdale87, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0