Frame and Bounds of CAShapeLayer

前端 未结 4 1945
抹茶落季
抹茶落季 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条回答
  •  猫巷女王i
    2020-12-31 11:39

    You need to set bounds or else it will behave like the anchorPoint is set to [0, 0]. Who wants that? :D

提交回复
热议问题