“Any” size class missing in Xcode 8

后端 未结 3 599
面向向阳花
面向向阳花 2020-12-25 15:23

I\'m a little confused when seeing the new interface builder\'s size class options in Xcode 8 beta. I used to build my apps\' UI by first design them in \"Any\" size class a

相关标签:
3条回答
  • 2020-12-25 15:34

    The UI to select the size classes has changed in xcode 8. Now it is as follows:

    Any constraints that you add without selecting Vary for Traits options will be considered as for all the size classes( Any Any previously)

    To add a constraint to a specific size class add it by selecting:

    • The device at the bottom and by selecting Vary for Traits options of that size class.
    • When you are adding constraints to a specific size class the bar turns blue as below

    0 讨论(0)
  • 2020-12-25 15:41

    To convert from the old Any by Any to the new Trait layout, go through each of your View Controllers and update all frames.

    Screen shot

    0 讨论(0)
  • 2020-12-25 15:43

    The way to do this has changed slightly in the new version of Xcode. It should build for "any-any" automatically. Have a look at this WWDC video that I think explains it in detail. There is also a part 2, so watch that if you need to.

    https://developer.apple.com/videos/play/wwdc2016/222/

    Hope I could help,
    Zack

    0 讨论(0)
提交回复
热议问题