imageView.layer.cornerRadius = imageView.bounds.size.width * 0.5;// 设置圆角刚好是自身宽度的一半,就刚好是圆形

        imageView.layer.masksToBounds = YES;

        imageView.layer.borderWidth = 1; //边框宽度

        imageView.layer.borderColor = [[UIColor grayColor] CGColor];//边框颜色

相关文章:

  • 2022-02-10
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2021-12-12
  • 2021-12-29
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
相关资源
相似解决方案