Animating between two bezier path shapes
问题 I found it tricky to animate a UIImageView between two states: its original rectangle frame, and a new shape created with a UIBezierPath . There are many different techniques mentioned, most of which did not work for me. First was the realization that using UIView block animation would not work; evidently one can't perform sublayer animations in an animateWithDuration: block. (see here and here) That left CAAnimation , with the concrete subclasses like CABasicAnimation . I soon realized that