标签:
UIViewContentModeScaleToFill :拉伸填充UIImageView满屏
UIViewContentModeScaleAspectFit :拉伸到合适UIImageView大小后(全部内容都还显示),自适应UIImageView大小。
UIViewContentModeScaleAspectFill :当宽高其中一个值达到UIImageView大小后,将图片放入UIImageView居中显示(可能会有部分内容超越UIImageView边框,需要结合clipsToBounds进行裁剪)
UIViewContentModeRedraw
UIViewContentModeCenter : 居中显示
UIViewContentModeTop,
UIViewContentModeBottom,
UIViewContentModeLeft,
UIViewContentModeRight,
UIViewContentModeTopLeft,
UIViewContentModeTopRight,
UIViewContentModeBottomLeft,
UIViewContentModeBottomRight,
来源:http://blog.csdn.net/iunion/article/details/7494511
UIImageView填充模式(contentMode)
标签:
原文地址:http://www.cnblogs.com/vshiron/p/5009835.html