Search code examples
iosanimationopengl-esquartz-2dframe-rate

How to assemble animation from an array of images with the highest FPS possible on iOS?


I apologize in advance if this question sounds dumb.

I have an array of images produced by another project, and I want to show them on the screen in sequence as fast as possible to assemble them to animation. How should I do this to achieve a frame rate at least higher than 30FPS?

I'm new to iOS development and I'm not sure where to start with. Should I look into Core Animation or OpenGL or Quartz2D or something else? Can someone please point me a direction?

Thanks a lot! Really appreciate the help.


Solution

  •  imageView.animationImages = imagesArray;
     imageView.animationRepeatCount = 0;
     imageView.animationDuration = 35;//depends on how fast you want it
    

    imagesArray is the array of images. Each image for each frame.

    Hope this helps..