How to create Universal application?

江枫思渺然 提交于 2019-12-24 02:12:04

问题


Is there a possibility to create a same application for both iphone and ipad.If yes means please clearly explain all controls(uitabelview,uiimageview etc...) for iphone will work for ipad.

And also give me a link for related studies...


回答1:


It's quite easy to create a universal app - Xcode even has a project that does some of the initial set up for you.

However, I believe the recommended approach is to use different NIB files/resources for each of the two targets and to use the appropriate UIKit objects for each device, as whilst the iPad supports all of the standard UIKit objects, there are some that are only available on the iPad. (See the "iPad-Specific Controllers" section within the View Controller Programming Guide for iOS for the full details.)

As such, you'll generally find that you use a shared set of model objects, but it's quite possibly easier to simply use different view controllers for each device depending on your required functionality.

I'd recommend reading the Introducing Universal Applications for iPhone OS PDF, as a good first step, as it outlines some of the issues you'll need to deal with.



来源:https://stackoverflow.com/questions/4656272/how-to-create-universal-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!