添加框架
QuartzCore.framework
引入头文件
#import <QuartzCore/QuartzCore.h>
圆角设置
myView.layer.cornerRadius = 8;
myView.layer.masksToBounds = YES;
添加框架
QuartzCore.framework
引入头文件
#import <QuartzCore/QuartzCore.h>
圆角设置
myView.layer.cornerRadius = 8;
myView.layer.masksToBounds = YES;