获取Size
view.frame.size
width
view.frame.size.width
height
view.frame.size.height
x
self.view.frame.origin.x
y
self.view.frame.origin.y
left
self.view.frame.origin.x
right
self.view.frame.origin.x + view.frame.size.width
top
self.view.frame.origin.y
bottom
self.view.frame.origin.y + view.frame.size.height
frame是当前视图的位置和大小,每个UIView必须设置。以屏幕左上角为圆点,水平向右X轴,垂直向下为Y轴。
bounds是相对于当前视图为圆点,bounds大小即是view的大小