UIViewFrame:添加该文件使用点属性可直接获取View的width height top bottom 以及 x y 等属性

时间:2021-05-01 15:42:08
【文件属性】:
文件名称:UIViewFrame:添加该文件使用点属性可直接获取View的width height top bottom 以及 x y 等属性
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-01 15:42:08
Objective-C UIViewFrame 添加该文件使用点属性可直接获取View的width height top bottom left rigth 以及 x y 等属性 #import "UIView+Frame.h" CGFloat width = view.width; //获取view 的宽 等价于 view.frame.size.width CGFloat height = view.height; //获取view 的高 CGFloat top = view.top; CGFloat bottom = view.bottom; CGFloat left =view.left CGFloat right = view.right
【文件预览】:
UIViewFrame-master
----UIView+Frame.m(3KB)
----UIView+Frame.h(540B)
----README.md(425B)

网友评论