I'm trying to animate a series of full screen images. Each image will be animated in a different way. I'd like to store these animations somewhere either in a database or plist or whatever, I just don't want to have them hard coded. The animations will be very simple, objects within the image will jiggle or bounce or what have you. I'm going to animate the objects using blocks and ideally i'd like the individual blocks to be stored in the data store. I'd like to avoid using a separate scripting language or something like that.
What is my best course of action?
If you want to store them in, for example, a plist, you can do something like this:
Then you can decode this into actual animations by writing something like the following code snippet:
It's not clear to me what benefit you might get from storing the animations in a data store, if that were possible. If you just don't want to repeat the animation code, you can put it in a method and pass the view(s) to the method.