转载:http://blog.csdn.net/iunion/article/details/7494511
UIViewContentMode

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各类型效果

相关文章:

  • 2022-12-23
  • 2021-04-02
  • 2022-01-29
  • 2022-12-23
  • 2022-01-22
猜你喜欢
  • 2022-01-07
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案