简体   繁体   English

如何为新的iPhone分辨率更新应用

[英]how to update apps for new iPhone resolution

The new iPhone is being presented.. it has a new resolution aspect ratio. 新的iPhone正在展示中。它具有新的分辨率纵横比。 (1136 x 640) (1136 x 640)

Does anyone know how to upgrade apps to support the new resolution?? 有谁知道如何升级应用程序以支持新分辨率?

Thanks! 谢谢!

Normal UI components like buttons etc. should be update with the new SDK - Like on the MBP Retnia. 普通的UI组件(如按钮等)应使用新的SDK更新-如MBP Retnia上的。 But graphics you have made like images, needs to be update with a bigger dpi - This is only a guess, but that was how it work to MBP Retnia 但是您制作的图像(例如图像)需要以更大的dpi进行更新-这只是一个猜测,但这就是MBP Retnia的工作方式

We are using Canappi to generate the Objective-C code that works on both resolutions (and with iPad too). 我们正在使用Canappi生成在两种分辨率下均可使用的Objective-C代码(也适用于iPad)。 Canappi works like Interface Builder, but in a textual form (which is much easier to use if you ask me). Canappi的工作方式与Interface Builder相似,但采用文本形式(如果您问我,它更容易使用)。 This is how you specify the position of your controls for each resolution and/or form factor: 这是您为每种分辨率和/或形状系数指定控件位置的方式:

layout myTabletLayout {

     text name (10,60,100,30) { ... }

}

layout myPhoneLayout {

    text name (10,60,100,30 + 0,10,0,2) { ... }

    tablet myTabletLayout ;

}

the +0,10,0,2 is a shift that is applied to the original coordinates when the app runs on an iPhone 5. That means that you can easily resize tables, space out controls or even, and that's really cool, bring controls which are displayed off screen on the iPhone 4, back into the iPhone 5 view bounds. +0,10,0,2是在应用程序在iPhone 5上运行时应用于原始坐标的偏移。这意味着您可以轻松调整表的大小,间距控件甚至是空格,这真的很酷,您可以带上控件它们在iPhone 4的屏幕外显示,回到iPhone 5的视图范围。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM