UIImageView填充模式(contentMode)

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
posted on 2015-12-01 13:34  十一点前要睡觉的小寒  阅读(417)  评论(0编辑  收藏  举报