开发者

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

开发者 https://www.devze.com 2023-01-30 15:35 出处:网络
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 ea

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

精彩评论

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

关注公众号