iPhone - 为Interface Builder创建自定义对象? [英] iPhone - Creating custom objects for Interface Builder?
问题描述
我目前正在将UIView子类化为创建自定义对象,它们工作得很好
I am currently subclassing UIView to create custom objects, they work perfectly fine
在界面构建器中,我拖放一个uiview并将类名设置为我的自定义视图,并在运行时视图将根据我的代码填充。
In interface builder i drag and drop a uiview and I set the class name to my custom view, and in runtime the view will populate according to my code.
问题:是否可以使它在界面构建器中的自定义视图DRAWS,并可能拖动并放下我的自定义视图?
QUESTION: Is it possible to make it so that my custom view DRAWS in interface builder, And maybe drag and drop my custom view ?
推荐答案
我已经研究了一段时间,据我所知这是不可能的使用iPhone SDK。
开发Mac SDK时,您可以创建自己的IB插件。
I've researched this myself a while back, as far as i know this is not possible using the iPhone SDK. When developing for the Mac SDK you can create your own IB plugins.
这篇关于iPhone - 为Interface Builder创建自定义对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!