UIViewContentMode,ios图片排版
2015-08-06 10:26
441 查看
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;
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;
![](http://dl.iteye.com/upload/attachment/0079/6850/3610a4ad-549c-30df-9944-0e0bbb352323.png)
相关文章推荐
- NSValue的个人想法
- IOS UIColor 自定义颜色
- Distinct Subsequences
- altibase MDB的创建sequence的举例
- question2answer优化
- Atomic Builtins - Using the GNU Compiler Collection (GCC) GCC 提供的原子操作
- cleaning selected projects has encountered a problem errors occurred during build
- hdoj.1297 Children’s Queue【大数+排列组合】 2015/08/06
- MSBUildToolsPath is not specified for the ToolsVersion
- 完美解决某些字符插入到mysql数据库出现incorrect string value的问题
- HDOJ 1242 Rescue(bfs+优先队列)
- HDU 1242:Rescue 【bfs】
- 多个UIImage合并成一个UIImage
- UICollectionView初探
- 【iOS学习笔记】生成带文本的UIImage
- Message MessageQueue Runnable Looper 和Handler的关系理解
- UI0805_Page
- UI0805_CellView
- UI06_UIPageControl
- UI06_UIScrollview