There are two properties in IOS that represent position and size, frame bounds so what's the difference between them two?
Frame refers to the position and size of the view in the parent view coordinate system. (The reference point is the father's coordinate system)
Bounds refers to the position and size of the view in its own coordinate system. (The reference point is its own coordinate system)
We're going to make it clearer with a diagram below.
We're going to be a bigger view, called Viewa, that's the parent view.
We're going to be a smaller view, called VIEWB, that's a child.
Then we obviously see Viewa's frame.size is 0,0 and Viewb's frame.size is 100,200.
Apple Development Group: 414319235 Welcome to join the Welcome discussion question
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
IOS Frame Bouns Differences