UIView clipsToBounds property: Does it improve performance?

前端 未结 3 860
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-13 01:47

The documentation says that the clipsToBounds property of UIView will clip the drawing to the bounds, or more precisely that the subView c

3条回答
  •  忘了有多久
    2021-02-13 02:38

    I think it's the opposite: turning on clipping hurts performance because it has to set up a clipping mask. I vaguely remember reading this somewhere, but I can't find it now.

提交回复
热议问题