问题描述
在iOS中处理iPhone4,iPhone5,iPhone6,iPhone6 + UI屏幕的最佳方法是什么?
What is the best approach to handle iPhone4, iPhone5, iPhone6, iPhone6+ UI Screens in iOS?
- iPhone 6+的尺寸(@ 3倍缩放),坐标空间:414 x 736像素
- 用于iPhone 6的尺寸,缩放比例为@ 2x,坐标空间为375 x 667像素
推荐答案
我认为此问题已得到回答这里
I think this question is already answered here
您只需要使用新的Xcode 6
Gold master,它将为两种新尺寸缩放您的屏幕.
有了它们,如果您创建新的应用程序,它们是新Xcode 6
中的几个新选项,下面给出其中一些:
You just need to use new Xcode 6
Gold master and it will scale your screen for both new sizes.
With that their are several new options in new Xcode 6
if you creating new application, some of them are given below:
用于选择启动画面的选项对:现在,您可以选择启动屏幕文件(xib),也可以使用资产目录.
Couple of options to select splash screen:You can now select launch screen file(xib), with that you can also use assets catalog.
您正在寻找可以在资产目录的属性检查器中检查的设备的特定大小.
You are looking for specific size for devices you can check that in attribute inspector of assets catalog.
对于其余的应用程序屏幕优化,您只需Auto layout
.
For the rest of the app screens optimization you just need to Auto layout
.
这篇关于在所有具有不同缩放比例/分辨率的iPhone中处理UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!