开发者

How does deployment of both iPhone and iPad works?

I got my iPad yesterday, once synced all iPhone apps synced to iPad. Some of the apps "auto" adjusted to the iPad format while other where in iPhone format. How does that technically work? Or rephrase: How do I as app developer deploy both iPad och iPhone at开发者_如何转开发 once for both formats with that "auto" behavior?

BR


Each application has a deployment target, which describes on what devices it can be launched. "Adjusted" apps list both iPhone and iPad as their target. In this case application includes icons, images and views for both iPhone and iPad, and the internal logic detects which view should be used depending on the device type.

There is a tutorial on how to make your apps iPad-compatible.


The applications that do this are so-called Universal applications; they include interface definitions for both iPad and iPhone formats and their Info.plist files are also configured as such.

Starting from the Window-Based Application Template in Xcode should demonstrate the configuration and setup nicely.

Most of the time, if you already have an existing iPhone application it is highly likely that you will be better off making a separate HD version of your app, both fiscally and technically, but if you are creating a new application, Universal could very well be the way to go.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜