#import <QuartzCore/QuartzCore.h>
//假设这个UIImageView 叫leftimage;
leftimage.layer.masksToBounds = YES; //没这句话它圆不起来
leftimage.layer.cornerRadius = 8.0; //设置图片圆角的尺度UIImageView圆角
最新推荐文章于 2021-05-27 07:46:34 发布
本文介绍如何使用 QuartzCore 框架中的 UIView 层属性来为 UIImageView 设置圆角效果。通过设置 layer.masksToBounds 和 layer.cornerRadius 属性,可以实现 UIImageView 的图片圆角显示。
365

被折叠的 条评论
为什么被折叠?



