且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

适用于iPad纵向和横向iOS8的自动布局

更新时间:2023-02-03 09:20:50

在IB中,将大小类wRhR大小类用于ipad.对于iPad,横向模式和纵向模式没有单独的尺寸类别.您可以通过使用网点进行预防性操作.

In IB use size class wRhR size class for ipad. For iPad there is no separate size class for landscape mode and portrait mode. You can do it using progarmatically using outlets.

如果您在代码中覆盖特征集合并覆盖任何与您相关的大小类,则可以在IB中做到这一点.

There is way to do it in IB if you override trait collections in your code and override any size class relevant to you.