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,