美文网首页
iOS超出屏幕的尺寸的图片如何按比例缩放显示

iOS超出屏幕的尺寸的图片如何按比例缩放显示

作者: 张家杰仔 | 来源:发表于2017-04-19 19:37 被阅读52次

_imageView.contentMode = UIViewContentModeScaleAspectFit;

_imageView.autoresizesSubviews = YES;

_imageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;

相关文章

网友评论

      本文标题:iOS超出屏幕的尺寸的图片如何按比例缩放显示

      本文链接:https://www.haomeiwen.com/subject/cwvhzttx.html