对图层的操作:

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

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

 

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

myWebView.layer.cornerRadius = 8;

myWebView.layer.masksToBounds = YES;

 

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

myWebView.layer.borderWidth = 5;

myWebView.layer.borderColor = [[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:1] CGColor];

相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2021-09-19
  • 2021-06-10
  • 2021-08-12
  • 2021-12-20
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2021-04-08
  • 2021-10-24
  • 2021-10-28
  • 2022-12-23
  • 2022-02-09
相关资源
相似解决方案