开发者

How to create Universal application?

开发者 https://www.devze.com 2023-02-03 09:15 出处:网络
Is there a possibility to create a same application for both iphone and ipad.Ifyes means please clearly explain all controls(uitabelview开发者_JAVA技巧,uiimageview etc...) for iphone will work for ipa

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

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消