typedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, UIViewContentModeScaleAspectFill, UIViewContentModeRedraw, UIViewContentModeCenter, UIViewContentModeTop, UIViewContentModeBottom, UIViewContentModeLeft, UIViewContentModeRight, UIViewContentModeTopLeft, UIViewContentModeTopRight, UIViewContentModeBottomLeft, UIViewContentModeBottomRight, };
原图比例:code
▽UIViewContentModeScaleToFillit
▽UIViewContentModeScaleAspectFit方法
▽UIViewContentModeScaleAspectFillim
▽UIViewContentModeLeftimg
==============================================co
//用于视图的缩放或重设尺寸
//会强制调用drawRect:方法来相应视图变化
//不该该在标准视图中使用该模式
UIViewContentModeRedraw,