1.给图层添加背景图片:

myView.layer.contents = (id)[UIImageimageNamed:@"view_BG.png"].CGImage;  

2.将图层的边框设置为圆脚

myWebView.layer.cornerRadius = 8;
myWebView.layer.masksToBounds = YES;

3.给图层添加一个有色边框

myWebView.layer.borderWidth = 5;
 myWebView.layer.borderColor = [[UIColorcolorWithRed:0.52green:0.09blue:0.07alpha:1] CGColor];

相关文章:

  • 2021-12-27
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
猜你喜欢
  • 2021-12-11
  • 2022-02-14
  • 2022-12-23
  • 2021-12-05
  • 2021-07-17
  • 2021-10-24
  • 2022-01-05
相关资源
相似解决方案