Domanda

I am about to create an xcode iphone app which will lauch initially as a single view ( something like login and settings screens ) and then proceed to a tabbed bar application with multiple tabs .

how to do this -

should i create two differnet projects one single view and one tabbed application ?

and is it possible to roll two projects into one single app ?

or is there just another easier way. I have xcode 4.3 and planning to use storyboard insteaod of XIBs

rgds,

sumit

È stato utile?

Soluzione

Do not start with two projects, as you'll have an incredibly difficult time integrating them into one app. This is pretty simple, but you do need to learn the basics of view controllers.

Use Storyboards, and start with a single view app, maybe inside a navigation controller. Then do a transition to a tabbed view controller.

Upgrade to Xcode 4.6.3 or 5. Look at Apple's template apps for a tabbed application and a single view app to see how the storyboards look. Then copy the storyboards in one to the other, and link them up. This is definitely possible and straightforward, but you do need to understand how each view controller works with the others.

Altri suggerimenti

I also faced same situation once. I made a project as single view based app. without storyboard (since I was required to build compatible apps with iOS 4.3).

  1. Made login screen as main view controller.
  2. On login, I presented tab viewcontroller modally.
  3. On sign out, I dismiss tab controller and return back to login screen.

If you have any queries, just ask it :)

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top