我在哪里可以找到“可折叠面板” Interface Builder 中的可可控件?
我正在尝试将可折叠面板添加到我在 Interface Builder 中添加的面板,类似于 Office 2008 和 XCode 本身中的面板。
对于那些不知道的人来说,这是可折叠面板:
OS X 可折叠面板 http://grab.by/3Hqv< /a>
知道如何将其添加到我的项目中吗?谷歌并没有提供太多帮助。
I'm trying to add a collapsible panel to a panel I added in the Interface Builder, similar to the one found in Office 2008 and XCode itself.
This is the collapsible panel for those that don't know it:
OS X collapsible panel http://grab.by/3Hqv
Any idea how I can add this to my project? Google hasn't been of much help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这通常被称为“公开视图”或“公开面板”,并且通常必须带有智能容器视图(通过多个公开子视图正确地增长/缩小/滚动)。 API 中不存在此类控制。大多数开发人员都自行开发,而有些开发人员则使用第三方开源。
Omni Framework 有一个这样的控件,效果非常好(包括“撕下”面板,等等,如果我没记错的话)。缺点:它是一个很大的框架,并且里面还有很多其他东西。
InspectorKit 是另一个。它更加集中(只是控件本身和 IB 插件),但我测试的最后一个版本确实存在一些 Interface Builder 插件的 UI 问题。
This is most often referred to as a "disclosure view" or "disclosure panel" and usually has to come with an intelligent container view (that grows/shrinks/scrolls correctly with multiple disclosure subviews). There is no such control as part of the API. Most developers roll their own while some use third-party open source.
The Omni Frameworks have one such control that works very well (including "tear-off" panels, etc., if I recall correctly). The drawback: it's a large framework and has a lot of other stuff in it as well.
InspectorKit is another. It's more focused (just the control itself and an IB plugin), but the last incarnation I tested did have a few UI issues with the Interface Builder plugin.
我还编写了一个处理此问题的框架: SFBInspectors
I've also written a framework for handling this: SFBInspectors