Reputation: 951
I've developed an iPhone app. I want to make the same application version of iPad. What you need to change the version of iPhone? What do I need for iPad version? Do I just change my UI design or are there any places in the code have to change?
Thanks,
Upvotes: 0
Views: 90
Reputation: 1149
Select the target and further go in bundle settings
go to deployment tab and then select the "iPad" in "targeted Device family"
then convert all Xibs with the ipad resolution.
Upvotes: 0
Reputation: 6801
You need to change the device in the summary (Project in proejct navigator -> App under Targets -> Summary -> Device -> iPad/iPhone/Universal). You can check which device the app is running on with this code. Then you can load different xib files and adjust your views for the specific device.
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)
{
viewController = [[[ViewController alloc] initWithNibName:@"ViewController_iPhone" bundle:nil] autorelease];
} else
{
viewController = [[[ViewController alloc] initWithNibName:@"ViewController_iPad" bundle:nil] autorelease];
}
Upvotes: 1
Reputation: 4732
choose your project file in project navigator, then choose your target -> summary -> iOS Application target -> make sure it is iPad camatible. Then only design left...
Upvotes: 0