开发者

Is there a way to add Interface Builder options to a custom class?

In my 开发者_如何学Capp, I made a subclass of UIView that I want to use in Interface Builder. Is there a way to make the instance variables settable via the "Attributes" section of IB?


Yes but not easily. In order for any custom controls to have Interface Builder support, you'll need to develop an IB plugin. I recommend going to the source for the nitty gritty. Take a look at the Interface Builder Plugin Programming Guide. Or, for a less overwhelming source, this blog.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜