Repeating busy circle animation
问题 I am currently trying to create a busy animation that looks like this: The broken part of the loop continually spins around the circle to signal that an operation is in progress. I am defining two circles using CAShapeLayer, one circle is 'filling in' the circle with strokeEnd and the other is 'clearing' with strokeStart. The 'clearing circle' starts 1/10 of the way in front of the 'filling circle': NSInteger radius = self.frame.size.width / 2; CGFloat lineWidth = radius / 7.5; UIColor *color