iPhone Dev: Animating PNG Sequences

后端 未结 4 651
攒了一身酷
攒了一身酷 2021-01-03 04:44

What is the best or recommended technique for animating PNG Sequences.
Heres what I\'ve learned:

Do it Manually
Using M

4条回答
  •  伪装坚强ぢ
    2021-01-03 05:48

    As I said in another answer, I found this to be a good way: PNG Animation method by Moses DeJong

    From his words:

    This example implements an animation oriented view controller that simply waits to read the PNG image data for a frame until it is needed. Instead of alllocating many megabytes, this class run in about a half a meg of memory with about a 5-10% CPU utilization on a 2nd gen iPhone.

    I'm still unsure exactly how it's done. I believe it basically uses UIImageView to cache up AVAudioPlayer.

提交回复
热议问题