1.添加库:QuartzCore.framework 2.添加头文件:#import <QuartzCore/QuartzCore.h> 3.设置imageView: imageView.layer.cornerRadius = 6; imageView.layer.masksToBounds = YES; 4.完成
给View添加圆角
最新推荐文章于 2024-04-15 10:14:51 发布
1.添加库:QuartzCore.framework 2.添加头文件:#import <QuartzCore/QuartzCore.h> 3.设置imageView: imageView.layer.cornerRadius = 6; imageView.layer.masksToBounds = YES; 4.完成
4989

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