1.添加库:QuartzCore.framework 2.添加头文件:#import <QuartzCore/QuartzCore.h> 3.设置imageView: imageView.layer.cornerRadius = 6; imageView.layer.masksToBounds = YES; 4.完成
给View添加圆角
最新推荐文章于 2022-09-29 22:58:49 发布
1.添加库:QuartzCore.framework 2.添加头文件:#import <QuartzCore/QuartzCore.h> 3.设置imageView: imageView.layer.cornerRadius = 6; imageView.layer.masksToBounds = YES; 4.完成