Frame and Bounds of CAShapeLayer

前端 未结 4 1930
抹茶落季
抹茶落季 2020-12-31 11:26

I am working on CAShapeLayer.And trying to draw non-linear path.I want to set frame to CAShapeLayer.So i can use CGPathGetPathBoundingBox

4条回答
  •  粉色の甜心
    2020-12-31 11:42

    In my experience, setting the position of a CAShapeLayer is completely sufficient for it to show up where you want it. Setting the bounds is not required for this.

    See the CoreAnimationText sample code for using it that way.

提交回复
热议问题