Setting toValue for CAShapeLayer animation from UICollectionView cellForItemAt indexPath
问题 I have the following parts: - My main view is a UIViewController with a UICollectionView - The cell for the UICollectionView - A subclass of the UIView to build a CAShapeLayer with an CABasicAnimation In my main view I have a UICollectionView which renders a bunch of cells with labels etc. It also is showing a progress graph. In my subclass ProgressCirclePath() I am drawing a CAShapeLayer which is acting as the progress graph rendered in each cell of my UICollectionView. I have been able to