UIView frame, bounds and center

后端 未结 6 738
梦谈多话
梦谈多话 2020-11-22 10:40

I would like to know how to use these properties in the right manner.

As I understand, frame can be used from the container of the view I am creating. I

6条回答
  •  粉色の甜心
    2020-11-22 11:15

    I found this image most helpful for understanding frame, bounds, etc.

    enter image description here

    Also please note that frame.size != bounds.size when the image is rotated.

提交回复
热议问题