大小类来区分iPhone 5,6和6 Plus? [英] Size Classes to distinguish between iPhone 5, 6 and 6 Plus?

查看:114
本文介绍了大小类来区分iPhone 5,6和6 Plus?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很高兴得知Size Classes与iOS 7向后兼容(在某些情况下)。现在我想知道 - 有没有办法使用Size Classes来区分iPhone 5,6和6 Plus?

I was very happy to learn that Size Classes are backward compatible with iOS 7 (in some cases). Now I'm wondering - is there a way to use Size Classes to distinguish between iPhone 5, 6 and 6 Plus?

推荐答案

没有。实际上恰恰相反,大小类用于抽象设备。这些是目前使用的尺寸等级:

No. Quite the opposite actually, size classes are used to abstract the device away. These are the currently used size class:

紧凑宽度,紧凑高度:横向模式下3.5,4,4.7iPhone


紧凑宽度,常规高度:所有目前可用的纵向iPhone设备

常规宽度,紧凑高度:5.5风景中的iPhone

常规宽度,常规高度:所有当前可用的iPad,无论方向如何

compact width, compact height: 3.5", 4", 4.7" iPhones in Landscape mode
compact width, regular height: all currently available iPhones in Portrait
regular width, compact height: 5.5" iPhone in Landscape
regular width, regular height: all currently available iPads regardless of orientation

这篇关于大小类来区分iPhone 5,6和6 Plus?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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