I have an iphone application but i want to make it run on ipad .when i run this app. on ipad it is shown in very small screen.I have no idea of making ipad app so i cannot write code for ipad app,Can anybody tell me to make this application run on ipad without changing the code ?
Good answers will be appreciated……….
In XCode, go into the Project menu, and select “Upgrade Current Target for iPad”. Choose the “Universal App” option. This will upgrade your target without changing any code at all. Open up the new iPad nib files, make sure everything looks good, and you should be good to go.
(EDIT: you’ll need to manually upgrade each of your nib files, and resize and prepare them for the iPad version.)
That said, the odds are that to make things look perfect, you’ll need to write some iPad code. To make this happen, create a file called
CommonMacros.hand add:Now, if you want to branch your code between iPhone and iPad, just add
to the top of your
.mfile. Then, anywhere in your code, you can use this method:One example of where you’d do this would be if you wanted to add some extra graphical element to the iPad version, or didn’t want the iPad version to have access to some iPhone feature.