图片圆角 image round corner:
m_mainImgView.layer.cornerRadius = 6;
m_mainImgView.layer.masksToBounds = YES;

自动适应,保持图片宽高比 aspect fit:
m_mainImgView.contentMode = UIViewContentModeScaleAspectFit;

见下图:
Ori:

Phone中图片的拉伸/圆角处理(Image round corner, aspect fit)
round corner:
Phone中图片的拉伸/圆角处理(Image round corner, aspect fit)
Aspect Fit:
Phone中图片的拉伸/圆角处理(Image round corner, aspect fit)

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-02
  • 2021-11-26
相关资源
相似解决方案