开发者

Best practice around using UIViews as containers for background etc

While designing the views in IB, i find it simple to use the UIVIews as containers for other controls. I use this to give a special background color etc..

Is this a good practice or should i be doing something else ? I guess i could programmatically draw a Rectangle. But i'm trying to leverag开发者_如何学Ce IB as much as i can.

Thanks


Yes, I think so. I also tend to use UIViews to group together controls that need to be changed together e.g. hiding a group of buttons. I don't believe there is a performance penalty from doing this.

Re: Interface Builder, I guess it all depends on what you feel confortable with. You can also create UIView containers programatically ;)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜