Convert iphone App to iPad

I just finished one application on iPhone, now I want to create the same application for iPhone and iPad.

I'm new to the iPhone, so I don’t know exactly what to do?

1) create a new project and select the Universal option and copy all the code

2) change this application for both.

How to add xib for iPad?

enter image description here

thanks

+4
source share
3 answers

You're right,

  • Select the Universal option.

  • Transfer the code from the existing iPhone project to the new project. NOW,

  • Make xib files for the iPad and make connections (IBOutlets).

  • In cases where you need platform-specific functions (for example, Popover, Split ViewController, etc. for iPad), put an IF to handle the device’s special functions.

+1
source

Perhaps this blog post gives you a quick overview when you want to convert. Otherwise, you can of course create a new project and copy the code.

+4
source

Select the option "View from the user interface" after selecting the iPad from the device family. This will create Xib for the iPad. Then your class will connect to File Owner.

0
source

Source: https://habr.com/ru/post/1432678/


All Articles