objective c - Change color of custom drawn UIView using block animations -
objective c - Change color of custom drawn UIView using block animations -
i have uiview draws via drawrect. utilize core graphics , draw bezier curve. have animation changes color of bezier curve drawn on occasions. having color property , changing in animation block doesn't work. need ensure redrawn correctly. way this? i'm quite new ios
i don't think can trying do. scheme has special code knows how animate changes in it's animatable properties, not back upwards animating changes other properties.
to animate color change, you're going need utilize cashapelayer drawing. strokecolor , fillcolor properties of shape layers animatable.
objective-c ios uiviewanimation
Comments
Post a Comment