I am working on CAShapeLayer.And trying to draw non-linear path.I want to set frame to CAShapeLayer.So i can use CGPathGetPathBoundingBox
CAShapeLayer
CGPathGetPathBoundingBox
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.
position
bounds
See the CoreAnimationText sample code for using it that way.