Do I have the right understanding of frames and bounds in UIKit?

后端 未结 5 1939
深忆病人
深忆病人 2020-12-23 20:55

Let me try to explain it. Please tell me if I am wrong. I am just 70% sure about it.

Like I understand it, an UIView has a frame and an bounds rectangle. The job of

5条回答
  •  执念已碎
    2020-12-23 21:14

    A view's Frame: the position and size of a rectangle inside the superview where the view will fill.

    A view's Bound: the position and size of a rectangle inside the view itself.

提交回复
热议问题