给图层添加背景图片
给图层添加一个有色边框
myView.layer.contents = (id)[UIImageimageNamed:@"view_BG.png"].CGImage;
将图层的边框设置为圆脚myWebView.layer.cornerRadius = 8;
myWebView.layer.masksToBounds = YES;
myWebView.layer.borderWidth = 5;
myWebView.layer.borderColor = [[UIColorcolorWithRed:0.52 green:0.09 blue:0.07 alpha:1]CGColor];