ios8 UIView API使用说明
来源:互联网 发布:医院大数据风控 编辑:程序博客网 时间:2024/05/20 10:15
@property(nonatomic, retain) UIView *maskView Available in iOS 8.0 and later.
The view’s alpha channel determines how much of the view’s content and background shows through. Fully or partially opaque pixels allow the underlying content to show through but fully transparent pixels block that content.
@property(nonatomic) UIEdgeInsets layoutMargins Available in iOS 8.0 and later.
Use this property so specify the desired amount of space (measured in points) between the edge of the view and any subviews. Auto layout uses your margins as a cue for placing content. For example, if you specify a set of horizontal constraints using the format string “|-[subview]-|
”, the left and right edges of the subview are inset from the edge of the superview by the corresponding layout margins. When the edge of your view is close to the edge of the superview and thepreservesSuperviewLayoutMargins
property is YES
, the actual layout margins may be increased to prevent content from overlapping the superview’s margins.
The default margins are eight points on each side.
@property(nonatomic) BOOL preservesSuperviewLayoutMargins Available in iOS 8.0 and later.
When the value of this property is YES
, the superview’s margins are also considered when laying out content. This margin affects layouts where the distance between the edge of a view and its superview is smaller than the corresponding margin. For example, you might have a content view whose frame precisely matches the bounds of its superview. When any of the superview’s margins is inside the area represented by the content view and its own margins, UIKit adjusts the content view’s layout to respect the superview’s margins. The amount of the adjustment is the smallest amount needed to ensure that content is also inside the superview’s margins.
The default value of this property is NO
.
- (void)layoutMarginsDidChange Available in iOS 8.0 and later.
The default implementation of this method does nothing. Subclasses can override this method and use it to respond when the value in the view’s layoutMargins
property changes. For example, you might override this method if your view subclass handles layout manually or uses the layout margins during drawing. In both cases, you could use this method to initiate a drawing or layout update.
- ios8 UIView API使用说明
- IOS8 UIViewcontroller API使用说明
- ios8 UIApplication API使用说明
- iOS8 API
- UIView Api
- iOS8新增的API
- iOS8毛玻璃效果-UIView模糊效果
- UIView全部API
- UITableViewRowAction详解(iOS8新API)
- IOS8 Spring Animation API 动画
- Libscws C API 使用说明
- API 函数 EnumProcesses 使用说明
- 流量数据API使用说明
- redis API使用说明
- Oracle EBS API使用说明
- Selenium api使用说明
- MonkeyRunner API使用说明-------------第一章
- MonkeyRunner API使用说明-------------附录
- 用httpclient遇到403错误
- 仿spring的ioc实现之注解注入的小例子
- Android如何用命令行进行打包
- tomcat 多个虚拟主机的配置
- 树状数组求区间和的一些常见模型
- ios8 UIView API使用说明
- 序列化的作用
- C++内存管理——指针&&数组
- freeswitch centos 安装
- Java开源工具使用介绍-----Apache Commons Lang
- Unity绘制贝塞尔曲线
- 聊聊如何设计安全的web密码
- 上班族熬夜吃什么水果好?(精)
- android弹窗PopupWindow的简单使用