I have a method which transforms some subviews of my view in a very specific route. so this method has one CGFloat parameter which varies between 0.0f and 1.0f.
I want to know which is the best way to animate this transformations (say it will begin at transform:0.0f and end at transform:1.0f). Obviously UIView's animateWithDuration won't work because I want my subviews to move exactly as I want.
Should I write my own custom interval based animation function to do this? (I dont want to to be honest). Or is there a simple way ?
NSTimer
or aCADisplayLink
, but when I hear that the "paths of transformation change several times", I thinkCAKeyframeAnimation
, there you can identify some key points in the overall animation. It's hard for me to say without better understanding what you're doing, but hopefully you can dig around forCAKeyframeAnimation
or perhapsCore Animation
, more generally, and maybe you'll find something that suits your purposes. - Rob