开发者

UIView in UIView issue

开发者 https://www.devze.com 2023-01-19 17:21 出处:网络
Perhaps I\'m missing a property or misunderstanding something but having issues with something simple.

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

精彩评论

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

关注公众号