1.添加库:QuartzCore.framework 2.添加头文件:#import <QuartzCore/QuartzCore.h> 3.设置imageView: imageView.layer.cornerRadius = 6; imageView.layer.masksToBounds = YES; 4.完成
1.添加库:QuartzCore.framework 2.添加头文件:#import <QuartzCore/QuartzCore.h> 3.设置imageView: imageView.layer.cornerRadius = 6; imageView.layer.masksToBounds = YES; 4.完成