innovationM
← Back to Blogs

iOS

Convert iPhone application to Universal application (iPhone and iPad Both)

InnovationM Admin 11 Feb 2014 2 min read
Convert iPhone application to Universal application (iPhone and iPad Both)

iOS Application can be developed for iPhone or iPad or Both (iPhone and iPad). Application that is developed for both is called Universal application.

If you have developed application for iPhone only then it will run on iPad but will not run on full screen of iPad. To make this application cover the whole screen you have to convert iPhone application to Universal application that runs on both iPhone and iPad.

If your application is iPhone only.  it will look like below in iPhone and iPad:

InnovationM Making iPhone only application to Universal (iPhone and iPad) application InnovationM Making iPhone only application to Universal (iPhone and iPad) application

 

After making application universal, it looks like this:

InnovationM Making iPhone only application to Universal (iPhone and iPad) application

You can do easily by following steps below:

  1. Open application in Xcode. Select Project Navigator.
  2. Select your Project Target.
  3. In Deployment Info section, select Devices. Here you will see 3 options – iPhone, iPad and Universal. Change from iPhone to Universal.
  4. It will prompt you an alert Copy “Main” to useInnovationM-iPhoneOnly-To-Universal-App as main iPad interface. It is prompting to use the name of the Storyboard (Main here) to create another iPad group. Normally, you would select to copy.
  5. It will add new iPad group.
  6. Add new Storyboard file under the iPad group in Project Navigator. Name it Main_iPad.storyboard.
  7. Change name of iPhone storyboard as Main_iPhone.storyboard from Main.storyboard.
  8. Update entry in plist. Main storyboard file base name – Main_iPhone 
  9. Add entry in plist. Main storyboard file base name (iPad)  Main_iPad.Now add your controller, outlet, action to Main_iPad.storyboard. 
  10. Make changes to Main_iPad.storyboard to make it utilize the complete screen. This would involve making changes in position, height and width of components.
  11. Also, you need to provide images for iPad.

Now you have made your application universal (iPhone and iPad).

Have fun…

For building world-class iOS solutions, contact sales@innovationm.com

About the Author

InnovationM Admin

Contributor at InnovationM.

LinkedIn

Transform Your Ideas with Expert Guidance

icon
15+ Years of Expertise

Delivering high-impact solutions with years of industry experience.

icon
100+ Satisfied Clients

Helping contact industry software experts to achieve their brand goals.

icon
250+ In-House Team Members

A skilled team ready to tackle projects of any scale.

Book a consultation call with our experts today