简体   繁体   English

如何为iPhone创建自定义Interface Builder插件?

[英]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. 我刚刚开始使用iPhone开发,我希望能够创建自定义用户界面元素,您可以在Interface Builder中将其拖放到应用程序中。 How do you create custom plugins like this for Interface Builder for the iPhone? 如何为iPhone的Interface Builder创建这样的自定义插件?

I'm pretty sure Interface Builder plugins are not (yet?) supported for iPhone OS, so what you want is not possible at the moment. 我很确定Interface Builder插件不支持(但是?)支持iPhone OS,所以目前无法实现您想要的功能。 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. 您可以通过在界面中放置一个简单的UIView并将其类设置为自定义控件的类来从IB实例化自定义对象。 But all the user would see in IB would be an empty rectangle and all customization would have to be done in code. 但是所有用户在IB中看到的都是一个空矩形,所有自定义都必须在代码中完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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