UIViewContentMode各类型效果
2016-04-07 10:09
435 查看
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)
相关文章推荐
- 【Tips】【UE】总结自己常用的UltraEdit使用技巧
- CppCMS1.0.3 Build by VS2012
- 如何在Android Studio里设置一个项目所用的Build Tool版本?
- 干货技巧!有哪些实用秘诀可以帮助UI/UX设计师自我提升
- 3.7.4 event_request_timer:安排定时事件
- iOS 系统自带UItableviewcell上添加其它控件 不需要自定义cell 简单粗暴
- EASYUI 1.4版 combobox firefox 下不支持中文检索的问题
- UIView层次管理bringSubviewToFront,sendSubviewToBack
- 求第k个排列组合(Permutation Sequence)
- js数组实际上是key-value对,长度可无限增长
- 《iOS Human Interface Guidelines》——Text Field
- Information Acquisition
- $(".className").attr("disabled", "true")
- 分布式Unique ID的生成方法
- UIWindow简单介绍
- c#利用WebClient和WebRequest获取网页源代码的比较
- iOS开发笔记15:地图坐标转换那些事、block引用循环/weak–strong dance、UICollectionviewLayout及瀑布流、图层混合
- 百度UEditor组件出现Parameters: Invalid chunk '' ignored警告的分析
- Android UI基础——Notification控件
- UI-UIButton、UILable、UITextField总结