Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert simple iPhone app to Universal app

I have very simple iPhone app, which uses just UIButtons, UIlabels, UITableView. without any custom controllers and graphics. How can I convert app to universal with that UI?

like image 231
Tunyk Pavel Avatar asked May 02 '11 19:05

Tunyk Pavel


People also ask

How easy is it to convert an iOS app to Android?

One cannot simply run iOS apps on Android devices or vice versa. You also need to keep in mind that both platforms have different operating systems. The native Android or iOS mobile app development requires unique parameters. This includes navigation, interface design, and programming languages.

How much does it cost to convert an iOS app to Android?

Cost of converting iOS app to Android The minimum price for a small project is $3000. The cost of converting an iOS app to Android completely depends on the application's complexity, size, and features. Your budget should be between $6000 to $20000 for developing the average feature app.

What is a universal iOS app?

A universal app is a single app that is optimized for iPhone, iPod touch, and iPad devices. From user's perspective, this provides the best user experience without downloading two different versions of apps. When user opens the universal app on iPhone, one will see the iPhone version.

What does it mean if an app is universal?

A Universal Windows app is a software application written in the Windows 8 or Windows 10 codebase that can run not just on a Windows PC, but also on a Windows tablet, smartphone, smartwatch or Xbox as well. Universal Windows apps are designed to function the same way on different form factors.


2 Answers

First update the application target device to Universal.

  1. Update the application target device to Universal.
  2. Check the Info.plist for NSMainNibFile & NSMainNibFile~ipad keys.
  3. For all other views, have two different NIB. For example FirstView.xib & FirstView~ipad.xib. iOS runtime will load the proper view based on the device.

Here is a screenshot of a sample project: Info.plist for iOS Universal app

like image 107
Black Frog Avatar answered Oct 05 '22 12:10

Black Frog


I needed to convert my iPhone App to iPad yesterday and found the easiest way to do it as long as your app is pretty simple. Mine was literally just some tableViews that were set to auto-size. In Targets / Devices just change it from 'iPhone' to 'Universal' and then build your application. This worked very nicely for me. All tableViews were perfectly formatted for the iPad and that is really all I needed.

Note that if you had any other XIB files that were not just tableViews, such as a window with text fields, all you have to do is set them each to resize properly so they stretch and stay at the top and your simple app should be pretty much all set for the iPad.

Obviously you'll need to test it and tweak anything needed but for the most part the above worked magically for me and took literally one second to convert my iPhone app to an iPad app!

like image 24
jroyce Avatar answered Oct 05 '22 13:10

jroyce