简体   繁体   中英

How to create an Interface Builder plugin in XCode5+?

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.

Any idea how to do this?

thanks.

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.

This is all in Xcode 4's release notes. Stay tuned to prerelease release notes for more updates on this matter.

Update for Xcode 6

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

You need to create an Interface Builder plugin for that; the static library has nothing Interface Builder knows how to work with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM