iOS开发 -- UIViewContentMode各类型效果
2015-08-18 13:30
399 查看
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;
相关文章推荐
- c# 线程中更新UI
- LoadRunner函数详解之web_custom_request
- querydate.sh
- spark技术分析—sparkUI
- presentViewController弹出一个半透明的UIViewController
- 【控件】UICollectionView
- UI笔记:UILabel、UIButton和UITextField
- 文件特殊属性:SUID/SGID/Sticky
- 设置UIBarButtonItem不显示按钮的返回文字
- Bluedroid 之GKI框架
- iOS开发 -- UISwitch几种颜色的更改
- Chapter5: View Redraw 和UIScrollView - The Big Nerd Ranch Guide 读书笔记
- UI (User Interface)
- Interface Builder 帮助文档 一 Building User Interface 构建用户界面
- UIView和CALayer的差异
- IOS UITableview 的Cell 封装
- UE3 材质概要
- Maven 使用指南(4): Maven Build 的阶段
- LeetCode Implement Queue using Stacks
- LeetCode Implement Queue using Stacks