Animation made of frames

We saw examples of keyframe animations of the position and transform properties of a layer. Now we will animate the contents property of a layer. Search for here for “Provide an array of CGImage objects”.

Png images from here.

Source code in Frames.zip

  1. main.m
  2. Class FramesAppDelegate
  3. Class View
  4. 0.png
  5. 1.png
  6. 2.png
  7. 3.png
  8. 4.png
  9. 5.png
  10. 6.png
  11. 7.png

Create the project

View.h must import QuartzCore.h. Add the eight png images and the QuartzCore.framework