Storyboard View Elements Greyed Out

淺唱寂寞╮ 提交于 2019-11-26 12:26:54

问题


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 : \"Problem\"

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

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