Xcode 4 检查器面板告诉我“没有选择”无论
我有一个窗口、一个标签、一个按钮和一个 NSObject。
我想做的第一件事是将 NSObject 的类更改为我的自定义控制器的类。
问题是,我似乎无法选择它。无论我选择什么对象,检查器面板都会显示“无选择”。为什么?我很困惑。
I have a window, a label, a button, and an NSObject.
The first thing I want to do is change the NSObject's class to that of my custom controller.
The thing is, I can't seem to select it. Whatever object I select, the inspector panel says "No Selection". Why? I'm baffled.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
接受的答案对我不起作用,但“NSExplorer”的回答确实有效(在 Xcode4 中,新的界面构建器显示“无选择”)。我稍微修改了“NSExplorer”的答案
..切换到当前选项卡中的另一个(非IB)文件
..切换回 IB 文件(例如 Main.storyboard),
属性检查器将神奇地显示在新选项卡中。
accepted answer did not work for me, but answer by 'NSExplorer' did (In Xcode4, the new interface builder says "no selection"). i slightly modified answer from 'NSExplorer'
.. switch to another (non IB) file in the current tab
.. switch back to the IB file (eg. Main.storyboard)
the Attributes Inspector will magically show in the new tab.
我只需关闭助理编辑器和调试区域,然后它就神奇地出现了。如果您没有打开助理编辑器,那么您所需要做的就是打开它,然后再次关闭它。这也应该解决它。
如果您不知道助理编辑器是什么,我已将其突出显示为红色:
Xcode 7.2
I just had to close the assistant editor and the debug area and then it magically showed up. If you don't have the assistant editor open then all you need to do is open it, then close it again. That should fix it too.
If you don't know what the assistant editor is I have highlighted it in red:
Xcode 7.2
XCode 4 中的界面生成器有很多错误。我也经常遇到这样的问题。您是否尝试过关闭 XCode 并重新打开您的项目?有时,调整整个 XCode 窗口的大小似乎也会重置界面构建器布局。
确保您从左侧的 XIB 文档面板(其中显示“对象”)选择对象。有时,出于某种原因,单击实际的 UI 控件不会出现在检查器面板中。
The interface builder in XCode 4 is incredibly buggy. I'm also having frequent issues like this. Have you tried closing XCode and re-opening your project? Sometimes, resizing the entire XCode window also seems to reset the interface builder layout.
Make sure you're selecting the objects from the XIB document panel (Where it says "Objects") on the left. Sometimes clicking the actual UI controls doesn't catch in the inspector panel, for whatever reason.
对我来说,我有底部,调试器一直延伸到顶部。上面写着“没有选择”。通过点击隐藏/打开底部调试器两次,您可以再次恢复主要组件。
For me, I had the bottom, debugger stretched all away to the top. It said "no selection." By Taping on hide/open bottom debugger twice, you can get the main component back again.
如果您有多个窗口,请关闭故事板文件并再次打开它,这对我有用
If you have multiple windows, close the storyboard file and open it again, it worked for me