0

Hi,

I am new to iPhone. I created two separate applications. What I want to do now is integrate the two applications into one. For example, I could show two buttons and clicking the first takes the user to the first application, while clicking the second button takes the user to the second application.

How should I approach this?

Thank you in advance.

SethO
  • 2,703
  • 5
  • 28
  • 38
Mahesh Babu
  • 3,395
  • 9
  • 48
  • 97

1 Answers1

2

A simple and generic way to do what you ask is to create two independent RootViewcontrollers and manage their appearence in the AppDelegate of the new app with presentModalViewController:animated:. Each controller shall encapsulate what a single application was doing before, acting as its on appDelegate (and so maybe you need to declare it accessible globally if one application was accessing its appDelegate from many classes). Another way is to use a UITabBarController that will wrap the two RootViewControllers.

rano
  • 5,616
  • 4
  • 40
  • 66
  • Here http://developer.apple.com/iphone/library/featuredarticles/ViewControllerPGforiPhoneOS/TabBarControllers/TabBarControllers.html#//apple_ref/doc/uid/TP40007457-CH102-SW1 you can find something about using UITabBarControllers – rano Aug 24 '10 at 10:43