在所有具有不同缩放比例/分辨率的iPhone中处理UI [英] Handle UI in all iPhones with different scaling/resolutions

查看:99
本文介绍了在所有具有不同缩放比例/分辨率的iPhone中处理UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆