标签:
UIViewContentModeScaleToFill, // default value
UIViewContentModeScaleAspectFit, // contents scaled to fit with fixed aspect. remainder is transparent
UIViewContentModeScaleAspectFill, // contents scaled to fill with fixed aspect. some portion of content may be clipped.
UIViewContentModeRedraw, // redraw on bounds change (calls -setNeedsDisplay)
UIViewContentModeCenter, // contents remain same size. positioned adjusted.
UIViewContentModeTop,
UIViewContentModeBottom,
UIViewContentModeLeft,
UIViewContentModeRight,
UIViewContentModeTopLeft,
UIViewContentModeTopRight,
UIViewContentModeBottomLeft,
UIViewContentModeBottomRight,
} UIViewContentMode;
各种展示效果:
默认值是:0,也就是,UIViewContentModeScaleToFill
一个个来理解下吧:
其他的是相似的,按照字面意思去理解就OK啦:
标签:
原文地址:http://www.cnblogs.com/hello-Huashan/p/4758225.html