iOS different constraints for different devices

前端 未结 4 1436
星月不相逢
星月不相逢 2020-12-16 16:34

I have a ViewController designed for iPhone SE

As you can see I also have a constraint Align Top to: Safe Area Equals 75

The question i

4条回答
  •  不知归路
    2020-12-16 17:14

    Not using Interface Builder, no. Constraints, can only target Compact, Regular or Any sizes and all iPhone models have Compact width and Regular height when in portrait mode.

    If you want that kind of granularity, you have to do it with code instead.

提交回复
热议问题