Study autoresizing mask
来源:互联网 发布:tower git mac 使用 编辑:程序博客网 时间:2024/05/10 15:25
Reference website
autoresizing masks defines how a view's frame changes when its superview's frame changes.
enum {
UIViewAutoresizingNone = 0,UIViewAutoresizingFlexibleLeftMargin = 1 << 0,
UIViewAutoresizingFlexibleWidth = 1 << 1,
UIViewAutoresizingFlexibleRightMargin = 1 << 2,
UIViewAutoresizingFlexibleTopMargin = 1 << 3,
UIViewAutoresizingFlexibleHeight = 1 << 4,
UIViewAutoresizingFlexibleBottomMargin = 1 << 5
};
typedef NSUInteger UIViewAutoresizing;
- UIViewAutoresizingFlexibleWidth means that the view's width will expand and shrink when its superview's width expands and shrinks.
- UIViewAutoresizingFlexibleHeight means the same things for height.
If there are no "struts"set, when the superview doubles in width, the view will doubles in width as well.
The strut settings are:
- UIViewAutoresizingFlexibleRightMargin
- UIViewAutoresizingFlexibleLeftMargin
- UIViewAutoresizingFlexibleTopMargin
- UIViewAutoresizingFlexibleBottomMargin
If UIViewAutoresizingFlexibleRightMargin is NOT set, the right strut is turned on. This means that the space between the right side of your view and the right side of its superview will not change when the view expands. The same concept holds for all the other margins.
0 0
- Study autoresizing mask
- 关于"Autoresizing Mask"
- autoresizing
- Autoresizing
- Autoresizing
- Autoresizing
- mask
- mask
- Mask
- autoresizing布局
- autoresizing布局
- study
- study
- study
- study
- STUDY
- Study
- study
- 小程序踩坑(不断更新)
- 一张1949年的老照片中的人物:谭平山,章伯钧,沈钧儒
- union 复习
- 选择排序
- wine的c盘路径与环境变量设置
- Study autoresizing mask
- C++继承类小结
- JavaEE之SSM整合示例
- JetBrains PyCharm 设置显示行号
- ZooKeeper分布式应用系统服务器上下线动态感知简单程序
- Linux创建一个空洞文件
- 半年工作总结
- leetcode_middle_60_64. Minimum Path Sum
- css 第二天