问题
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 this is what the scene shows me :
Is this something I\'ve enabled accidentally? or if it\'s an Xcode problem. It first did this after I enabled source control for the project.
Anyone have an idea on how to fix?
回答1:
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).
回答2:
If you want to make sure it works with any width and height, find the constraint:

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

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

回答3:
Check that Installed
is checked at the bottom of the Attributes Inspector
来源:https://stackoverflow.com/questions/25700408/storyboard-view-elements-greyed-out