Creating an application for iPhone and iPad

Can anyone suggest how I can create a universal app for the iPad as well as the iPhone. What should I take care of? How to take care of the image resource ? Is it possible that the same code base should work for both iPad and iPhone.

+3
source share
2 answers

AT Target->Project->getInfo->Build->target family-> select iPhone/iPad

And create the conditions wherever you set the frame, and the image resolution required by the iPAD is very large. Since, subject to verification, check whether it works on the iPad or iPhone, and based on this, set your frame and image.

DOWNLOAD ENCODING ...

+4
source

(. @Suriya ) , iPad iPhone. , .

, iPad . , . .

:

MyTableViewController.h .m, iPhone. MyTableViewCell. , iPad , . iPhone : MyiPadTableViewController : MyTableViewController MyiPadTableViewCell : MyTableViewCell . , , .

- (void)doSomething:(id)foo; MyTableViewController, MyiPadTableViewController . , , .

+2

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


All Articles