1 /* 需要得到一个图片的放大比例,这个比例就是屏幕的宽度与图片真实宽度的比值 */
2 CGFloat newZoomScale = LZ_SCREEN_WIDTH / [_photoImageView.image size].width;
3 CGFloat xsize = self.bounds.size.width / newZoomScale;
4 CGFloat ysize = self.bounds.size.height / newZoomScale;
5 [self zoomToRect:CGRectMake(- xsize/2, - ysize/2, xsize, ysize) animated:YES];

 

相关文章:

  • 2022-12-23
  • 2022-01-06
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2021-11-06
猜你喜欢
  • 2021-11-22
  • 2021-05-19
  • 2021-12-02
  • 2022-12-23
  • 2021-05-23
  • 2021-07-15
  • 2021-04-03
相关资源
相似解决方案