ios - Counter Clockwise stroke on CAShapeLayer -
how set direction strokestart , strokeend on cashapelayer
this out of box. (strokeend 0.75)
how can create move opposite way (strokeend 0.75)
the problem not strokeend
, cgpath
you're using , clockwise.
i guess want this: [[uibezierpath bezierpathwithovalinrect:yourrect] bezierpathbyreversingpath].cgpath
edit:
another way have been utilize
strokestart = 1 - strokeend; // not sure name "strokestart" strokeend = 1;
but reversed path represents intentions better
ios core-animation cashapelayer
No comments:
Post a Comment