【发布时间】:2016-09-06 06:05:16
【问题描述】:
使用 Xcode 8 Interface Builder,是否可以为特定设备(iPhone 4s)以不同的方式定位元素?只是这个设备对于常规设计来说太小了,所以产品要求是重新排列 iPhone 4s 的按钮。
我尝试改变 trait,但它同时影响许多设备。
到目前为止,我只能用代码解决这个问题:
if UIScreen.mainScreen().bounds.height <= 480 {
// iPhone 4s
} else {
// other
}
【问题讨论】:
标签: iphone interface-builder xcode8