您的位置:首页 > 移动开发 > IOS开发

ClipToBounds

2015-09-11 18:32 369 查看

clipToBounds

-

UIView的clipToBounds属性:用于判断当前view的子view范围超出当前view后是选择截取还是不截取。

官方解释:

Setting this value to YES causes subviews to be clipped to the bounds of the receiver. If set to NO, subviews whose frames extend beyond the visible bounds of the receiver are not clipped. The default value is NO.

图片实例:

clipToBounds = YES



clipToBounds = NO

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios