Online read a bunch of articles about bounds, mostly refers to a general picture, in fact, bounds can be simply summed up only two aspects
1 when we set the initialization position of the bounds by using the SetBounds method, X, y
2 When we modify the size of the bounds by the SetBounds method that is width and height
3 When we modify the above two properties simultaneously through the SetBounds method
Situation One
It is well known that bounds is the equivalent of its own coordinate system, with each control having only one default bounds, i.e. (0,0,width,height), when we modify bounds. When you modify X, Y, it is equivalent to changing the left corner of the view to the left (x1,y1,width, height), so the frame of the fruiting graph added to it changes
Situation Two
Modify the width, height, and remember that the center of the view (information relative to the parent view) does not change, that is, the location of the central point is constant, which is important when zooming in and out, such as the previous width,height (100, 100) , first modified to (200, 200), is actually his left and right both add 50, that is, width = (oright) width+50*2, height = (oright) height+50*2, while x = (oright) x-50, y = (Oright) y-50, which is the equivalent of swelling, the frame of the view changes correspondingly.
Situation Three
In the two cases described above, etc. .....
iOS bounds real-world explanations