Storyboard View Elements Greyed Out

后端 未结 3 638
旧巷少年郎
旧巷少年郎 2020-11-29 05:49

I\'m currently trying to edit a storyboard file, in Xcode 6 (not sure if this is an Xcode bug, or if i\'ve just done something), and when I go to the view i want to edit thi

相关标签:
3条回答
  • 2020-11-29 06:19

    The problem is probably related to Size Classes. If you have the option enabled make sure that the views were created for the size class that you have currently selected in IB (the grid thing).

    0 讨论(0)
  • 2020-11-29 06:22

    Check that Installed is checked at the bottom of the Attributes Inspector

    0 讨论(0)
  • 2020-11-29 06:28

    If you want to make sure it works with any width and height, find the constraint:

    wAny hR

    and remove it by clicking on the x, leaving only installed checked:

    wAny hAny


    I think Xcode will stop adding these automatically if you set the view to Any Width | Any Height in the Storyboard:

    storyboard bottom bar

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