frame:指的是视图在父视图的坐标系统中的大小和位置. bound:指的是视图在试图本身的坐标系统中的大小(位置起点是原点). center:指的是视图在父视图坐标系统中的中心点. 贴张苹果官网的图: frame和bound的关系 下面这是其中一个发生变化,其余两个的变化,直接看吧,很浅显. Although you can change the frame, bounds, and center properties independent of the others, change
http://stackoverflow.com/questions/5361369/uiview-frame-bounds-and-center Since the question I asked has been seen many times I will provide a detailed answer of it. Feel free to modify it if you want to add more correct content. First a recap on the
frame frame的官方解释如下: The frame rectangle, which describes the view's location and size in its superview's coordinate system. This rectangle defines the size and position of the view in its superview's coordinate system. Use this rectangle during layou