UIView的UIViewAutoresizingMark
来源:互联网 发布:js下载 编辑:程序博客网 时间:2024/05/29 13:03
typedef NS_OPTIONS(NSUInteger, UIViewAutoresizing) {
UIViewAutoresizingNone = 0,
UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
UIViewAutoresizingFlexibleWidth = 1 << 1,
UIViewAutoresizingFlexibleRightMargin = 1 << 2,
UIViewAutoresizingFlexibleTopMargin = 1 << 3,
UIViewAutoresizingFlexibleHeight = 1 << 4,
UIViewAutoresizingFlexibleBottomMargin = 1 << 5
};
UIViewAutoresizingNone就是不自动调整。
UIViewAutoresizingFlexibleLeftMargin 自动调整与superView左边的距离,保证与superView右边的距离不变。
UIViewAutoresizingFlexibleRightMargin 自动调整与superView的右边距离,保证与superView左边的距离不变。
UIViewAutoresizingFlexibleTopMargin 自动调整与superView顶部的距离,保证与superView底部的距离不变。
UIViewAutoresizingFlexibleBottomMargin 自动调整与superView底部的距离,也就是说,与superView顶部的距离不变。
UIViewAutoresizingFlexibleWidth 自动调整自己的宽度,保证与superView左边和右边的距离不变。
UIViewAutoresizingFlexibleHeight 自动调整自己的高度,保证与superView顶部和底部的距离不变。
UIViewAutoresizingFlexibleLeftMargin |UIViewAutoresizingFlexibleRightMargin 自动调整与superView左边的距离,保证与左边的距离和右边的距离和原来距左边和右边的距离的比例不变。比如原来距离为20,30,调整后的距离应为68,102,即68/20=102/30。
- UIView的UIViewAutoresizingMark
- UIView-draggable 可拖拽的UIView
- UIView-draggable 可拖拽的UIView
- UIView的drawRect
- UIView的剖析!
- 第三、UIView的详解
- UIView的学习
- UIView的剖析!
- UIView的剖析
- iOS的UIView
- 图像UIVIEW的旋转
- 使用自定义的UIView
- UIView的clipsToBounds属性
- UIView的剖析
- UIView的autoresizingMask属性
- UIView的深入研究
- UIView的基础知识
- UIView 的 autoresizingMask 理解
- JavaWeb---request
- Maven快速创建SpringMVC web工程详解
- 时间偏移计算
- Ruby 迭代器
- javascript里的sleep()方法
- UIView的UIViewAutoresizingMark
- Excel文件导入导出实战(4)--上传下载
- 社交网络的好友推荐
- ImportError:cannot import name game
- centos中安装并使用svn
- AFNetworking 对数据进行https ssl加密
- Android Develop:减小APK大小
- 获取Echarts的DataZoom的起始值
- Spring源码分析【6】-ThreadLocal的使用和源码分析