Example:
1) fade an uiview from alpha 0.0 to 0.2 2) fade back to 0.15 3) fade to 0.25 4) fade to 0.2 5) fade to 0.35 6) fade to 0.3 7) fade to 0.45 8) fade to 0.4 ... and so on. each with a duration of 0.05 sec. The effect is a flashy appearing view. Just for fun.
Previously I did this with simple UIView animation blocks, where every new stage (2...8) was a method that has this huge methodName:finished:context: signature. I just used the delegate and didEnd selector stuff to proceed from one step to the next as the steps finish. This results in hardly-badly very ugly and chunky code. The stuff above would fill several screens.
So now I found this hopefully useful CAKeyFrameAnimation stuff. Could I just put lots of target states with durations etc. in a big array and feed the guy with input? Are there any good examples on how to do that?