开发者

UIView in UIView issue

Perhaps I'm missing a property or misunderstanding something but having issues with something simple.

I have a UIView with a frame lets say of 100px high in which I have another UIView with lets say 50px high. If set the main UIView to 开发者_JAVA技巧20px high the 50px high one is fully visible. I thought it might of been something to do with the bounds so I set that and its no different.

Sorry if this is answered somewhere else but couldn't find anything relating to this.


On the "parent" view, set the clipsToBounds property to YES.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜