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

后端 未结 5 1938
深忆病人
深忆病人 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:18

    Check out Apple's guide on View Geometry. They have pretty good examples on what happens when you change bounds and frame values.

提交回复
热议问题