//将图层的边框设置为圆角
self.myView.layer.cornerRadius=8;
self.myView.layer.masksToBounds=YES;
//给图层添加颜色
self.myView.layer.borderWidth=8;
self.myView.layer.borderColor=[[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:0.5]CGColor];
//将图层的边框设置为圆角
self.myView.layer.cornerRadius=8;
self.myView.layer.masksToBounds=YES;
//给图层添加颜色
self.myView.layer.borderWidth=8;
self.myView.layer.borderColor=[[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:0.5]CGColor];