Reputation: 13180
I read document about universal app's and i read how to convert iphone application to ipad, but can i convert my ipad application to iphone application?
Is there any tutorial for universal application?
Upvotes: 2
Views: 2287
Reputation: 50697
While Nils approach will get you started, you will also need to create new XIB's that are structured for the smaller interface. You will also need to determine in code what view you are loading for which device.
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
/* do something for the iPad */
else
/* do something for the iPhone */
Here is one tutorial (of many on Google): http://blog.corywiles.com/creating-a-universal-ios-app-tutorial
Upvotes: 5
Reputation: 8845
Yes you can.
in XCode, select your application, and pick "Universal" from the Device family and presto, your app is now universal.
Upvotes: 6