xcode 6 对象库为空(没有匹配项)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28641328/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
xcode 6 object library is empty (no matches)
提问by Nite
I am trying to follow instruction to create "Hello World" but I don't seem to have anything in my object library? It just says "No Matches" in the dialog. what am i missing here? Thank you.
我正在尝试按照说明创建“Hello World”,但我的对象库中似乎没有任何内容?它只是在对话框中说“无匹配”。我在这里错过了什么?谢谢你。
回答by Mark Suman
I discovered a solution. It was happening when I was editing a Storyboard in an Assistant Editor. I closed the Assistant Editor and opened the Storyboard in the main editor and my Object Library began working again. I would guess this is a bug in Xcode.
我发现了一个解决方案。当我在助理编辑器中编辑故事板时发生了这种情况。我关闭了助理编辑器并在主编辑器中打开了故事板,我的对象库又开始工作了。我猜这是 Xcode 中的一个错误。
回答by billy21212
I have got the same problem today, started a new project, opened main.storyboard, object library was saying "No Matches". solution: right click on main.storyboard file, select "open as", choose "interface builder-storyboard" and now the objects library should be filled.
我今天遇到了同样的问题,开始了一个新项目,打开 main.storyboard,对象库说“No Matches”。解决方案:右键单击 main.storyboard 文件,选择“打开为”,选择“interface builder-storyboard”,现在应该填充对象库。
回答by Van
I also had same problem, I tried opening another file and switching back to storyboard again started showing everything normal.
我也有同样的问题,我尝试打开另一个文件并再次切换回故事板开始显示一切正常。
回答by Mariav
My object library tab was totally empty, not even the filter field existed. My solution was the following: at the right upper corner, I found a symbol circle with square inside. Clicked there and the options appear, among them "Label" which was what I was looking for.
我的对象库选项卡完全是空的,甚至不存在过滤器字段。我的解决方案如下:在右上角,我发现了一个里面有正方形的符号圆圈。单击此处并出现选项,其中包括我正在寻找的“标签”。