UIViewContentMode各类型效果
2016-06-12 11:49
429 查看
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;
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;
![](http://img.my.csdn.net/uploads/201211/27/1354011953_1051.png)
相关文章推荐
- 浅谈如何实现easyui的datebox格式化
- POJ-1458 Common Subsequence
- UI各种效果库
- Android基础UI组件
- UILabel的行间距
- UIView 中的控件事件穿透 Passthrough 的实现
- javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerF
- android UI——分组+悬停 listview
- 卡特兰数变形之Unique Binary Search Trees II
- “could not build module UIKit”问题的解决
- 设置soapui 最大设置访问时间
- minigui杂项
- IOS Dev Intro - Key-Value Observing
- Android,UI主线程与子线程
- Kendo UI常用示例汇总(十二)
- android:windowIsTranslucent="true"透明style与横竖屏切换的冲突
- Ueditor设置默认字体、字号、行间距,添加字体种类
- Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB
- 太原UI设计师H5的新标签你知道有哪些吗?
- HDU 1560 DNA sequence IDA*