How to create an Interface Builder plugin in Xcode5 +?

I need to create an object library , an Interface Builder plugin, like Mapkit , so that the user can drag my custom object and add it to the UIView .

enter image description here

As a property, I want to show and configure it using my main properties.

Any idea how to do this?

thanks.

+7
source share
2 answers

In Xcode 4.0, Apple removed support for using custom interface builder palettes provided by IBPlugins in the Builder interface editor. Xibs / Nibs that use such plugins will compile, but they cannot be edited. You will need to install Xcode 3 (in a separate folder so as not to overwrite 4) and use it to edit xib with custom palettes.

This is all in the Xcode 4 release notes. Stay tuned to receive notifications of additional updates on this subject.

Update for Xcode 6

Plugins are no longer needed. See @IBDesignable and @IBInspectable. :-)

+6
source

To do this, you need to create an Interface Builder plugin; the static library has nothing that the Builder interface works with.

+2
source

All Articles