tags:

views:

32

answers:

1

hi i am new to iphone. what i did is i had done two application separately. now what i need is i have to integrate the two applications by placing the buttons means while clicking button1 it goes to first application, while clicking button2 it goes to second application how can i done this pls help me post some code. thank u in advance

+2  A: 

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
pls post some link or code
MaheshBabu
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