http://blog.youkuaiyun.com/iunion/article/details/7494511
typedef enum {
UIViewContentModeScaleToFill,
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;
UIViewContentMode详解
本文详细介绍了UIViewContentMode的各种模式,包括但不限于UIViewContentModeScaleToFill、UIViewContentModeScaleAspectFit等,并解释了每种模式在视图变化时的行为特征。
3345

被折叠的 条评论
为什么被折叠?



