简体   繁体   中英

How do I create custom Interface Builder plugins for the iPhone?

I'm just getting started with iPhone development, and I'd like to be able to create custom user interface elements that you can drag-and-drop into the application in Interface Builder. How do you create custom plugins like this for Interface Builder for the iPhone?

I'm pretty sure Interface Builder plugins are not (yet?) supported for iPhone OS, so what you want is not possible at the moment. You can instantiate custom objects from IB by placing a plain UIView in your interface and setting its class to your custom control's class. But all the user would see in IB would be an empty rectangle and all customization would have to be done in code.

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