Differences in programming iPhone and iPad

What are the main differences between developing an application for iPhone and iPad?

Do I need to write additional code?

thanks

+6
source share
6 answers

In principle, you can use the same objects and user interface controls, but the manual for the iPad user interface is very different from the iPhone.

You will need to write additional code if you plan to create a universal application, in which case you should be able to conditionally change the behavior of your application depending on which platform it runs on.

For the iPad platform, you can use the new UIPopoverController and UISplitViewControllers, which gives you new ways to interact with the big screen (more here ).

By the way, you will need to create another set of .xib files or process existing ones (created for iPhone) so that you can easily adapt to a larger screen. In addition, when developing for the iPhone, you can usually snap your project to a predefined orientation (portrait), on the iPad you should consider turning the view in landscape orientation as well.

You should consult Apple's official documentation for developing iOS applications regarding user interface guidelines and for developing universal applications.

+7
source

For details on the differences between the iPad and iPhone, see the iPad Programming Guide and the iPad Human Interface Guide .

iPad programming is basically the same as the iPhone. The iPad has a larger screen, several new user interface features and various performance features.

+2
source

There are not many differences, only the difference in the size of the view and some other functions, such as gesture, etc. available on iPad.

thanks

+2
source

The code for the iPhone and iPad is not much difference. But the main difference is the nib file.

+1
source

Among others, there is one significant difference.

iPad: There is a concept for presenting wizards and details.

iPhone: Does not have the concept of introducing a wizard and details.

+1
source

The main difference is the user interface; The iPhone resolution is 320 x 480, while the iPad has a higher resolution of 1024 x 768, so you have more space to display on the iPad. There is no difference in coding, the method written for the iPhone will work on the iPad. But you need precautions if you use special equipment, for example, the iPad does not have a camera , so if you used the camera, you will need some checks, if the camera is not available, then your code should not start, but display an error message.

+1
source

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


All Articles