Adaptive Layout in Xcode 8

怎甘沉沦 提交于 2019-12-01 14:28:15

问题


I am developing app using Xcode 8 (beta 1). Unfortunately, I am not able to find "Size Classes" option.

In Xcode 7, there was option "Use Size Classes".

But in Xcode 8 there is no such option. Is there any help for using Size Classes or similar in Xcode 8?


回答1:


Now you have "Use Trait Variations" which is improved version of Size Classes


You can now select device based and orientation based trait view much like size classes (iPad Pro, iPad, iPhone 6Splus, iPhone 6s, iPhone SE and iPhone 4s)




回答2:


Apple introduce new feature called Trait Variations.

So now you can simply create how it looks on real device.

You can simply switch devices by just clicking and also change the orientation of your view.



来源:https://stackoverflow.com/questions/38631327/adaptive-layout-in-xcode-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!