1

I've followed this answer to create an animated circle, and it works just fine. In addition to the path, I draw a text in the center of the view with drawInRect. I would like that text to change during the animation, to reflect the percentage of the path that is visible at each moment. How can I achieve that?

Thanks.

Community
  • 1
  • 1
Filipe Ramos
  • 1,755
  • 2
  • 18
  • 24

1 Answers1

0

The most promising post would likely be this one. It describes creating a new CALayer that keeps track of the progress, which can then fire a call back.

Otherwise you'll likely need to wangle something together by observing your view's presentationLayer.

Community
  • 1
  • 1
Kevin
  • 1,626
  • 16
  • 30