问题描述
我需要制作一个对象库,Interface Builder插件(例如 Mapkit
),以便用户可以拖动自定义对象并添加到 UIView
。
I need make an Object Library, an Interface Builder plugin like Mapkit
so that user can drag my Custom Object and add to UIView
.
作为属性,我想显示和配置其基本属性。
As property, i want to show and configure it with my basic properties.
任何想法该怎么做?
谢谢。
推荐答案
在Xcode 4.0中,Apple删除了对使用自定义的支持。 IBPlugins在Interface Builder编辑器中提供的Interface Builder面板。使用此类插件的Xib / Nib仍将编译,但无法编辑。您需要安装Xcode 3(在一个单独的文件夹中,以免覆盖4),并使用它来编辑具有自定义调色板的XIBS。
In Xcode 4.0, Apple has removed support for using custom Interface Builder palettes provided by IBPlugins in the Interface Builder editor. Xibs/Nibs that use such plugins will still compile but they cannot be edited. You'll need to install Xcode 3 (in a separate folder so as not to overwrite 4) and use it to edit xibs with custom palettes.
这一切都在Xcode中4的发行说明。请继续关注预发行版本说明,以获取有关此问题的更多更新。
This is all in Xcode 4's release notes. Stay tuned to prerelease release notes for more updates on this matter.
Xcode 6更新
Update for Xcode 6
不再需要插件。请参阅@IBDesignable和@IBInspectable。 :-)
Plugins are no longer necessary. See @IBDesignable and @IBInspectable. :-)
这篇关于如何在XCode5 +中创建Interface Builder插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!