关于UIView

来源:互联网 发布:js防水涂料厚度规范 编辑:程序博客网 时间:2024/06/04 00:39

mark一些属性:


clipsToBounds  = YES 使得超出UIView的部分不进行显示




layer层

masksToBounds = YES

/* When true an implicit mask matching the layer bounds is applied to

 * the layer (including the effects of the `cornerRadius' property). If

 * both `mask' and `masksToBounds' are non-nil the two masks are

 * multiplied to get the actual mask values. Defaults to NO.

 * Animatable. */


0 0
原创粉丝点击