frame、bounds、center
frame、 bounds、 center 屬性
frame: 控制位置和大小
bounds:控制大小(以自身視圖左上角為原點(diǎn))
center:控制位置(中心點(diǎn))
使用注意:
① 修改控件位置
frame.origin
center
② 修改控件尺寸
frame.size
bounds.size
frame: 控制位置和大小
bounds:控制大小(以自身視圖左上角為原點(diǎn))
center:控制位置(中心點(diǎn))
① 修改控件位置
frame.origin
center
② 修改控件尺寸
frame.size
bounds.size