iDevGames Forums
animation on iphone ? - Printable Version

+- iDevGames Forums (
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: animation on iphone ? (/thread-2216.html)

animation on iphone ? - imaumac - Oct 28, 2008 11:45 AM

hi. just a small question.
is posible to put a gif animation inthe iphone?
png sequence?

thanks !

animation on iphone ? - kodex - Oct 28, 2008 01:26 PM

Convert it to a PNG then put a timer loop on it to swamp in between them.

animation on iphone ? - imaumac - Oct 28, 2008 06:31 PM

sorry do you have some example to use it please ?
orawebsite that show how usea timer with png please ?
thansk a lot !

animation on iphone ? - SethWillits - Oct 28, 2008 08:35 PM

Nobody is going to have a tutorial on this because it's dirt simple. A timer takes no more than 2 minutes to figure out how to use if you've never even heard of one before, and surely you've used one at some point by now. And swapping between images, in an image view for instance, is one line of code.

At the risk of sounding like a jerk, surely you can put this together on your own?

animation on iphone ? - kodex - Oct 28, 2008 10:11 PM

Just have the timer call the function then have a variable keep track of what "frame" the image is on, when you get to the last frame reset it to the beginning.

animation on iphone ? - imaumac - Oct 29, 2008 05:57 AM

Really thanks, i was looking on documentation how do this.
and lookinf for UIImageView animation.
but I dont understand a lot.

is there a code to copy and paste please.
I am ashamed to ask, ...realy

please one more time sorry
but i realy need this.

is there most way to learn this on internet website?
or What is the easier code to learn please ?

its only 4 small png sequence (loop)

and I need to animate while you are reading a text please.
thanks a lot.
any help are realy welcome.

i found this URL but i dont know what is the best to learn:

animation on iphone ? - imaumac - Oct 30, 2008 06:36 PM

i got i ... thanks you.
4 days later but i know how.
thanks again a lot !

RE: animation on iphone ? - mdejong1024 - May 2, 2013 09:57 PM

See example 2, PNG animation here:

The full source code is available as an example iOS Xcode project. If you want more advanced features like frame to frame compression and 7zip compression of the final result take a look at my AVAnimator library.