animation on iphone ?

Member
Posts: 178
Joined: 2008.09
Post: #1
hi. just a small question.
is posible to put a gif animation inthe iphone?
png sequence?

thanks !

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #2
Convert it to a PNG then put a timer loop on it to swamp in between them.

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Member
Posts: 178
Joined: 2008.09
Post: #3
sorry do you have some example to use it please ?
orawebsite that show how usea timer with png please ?
thansk a lot !

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
⌘-R in Chief
Posts: 1,247
Joined: 2002.05
Post: #4
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?
Quote this message in a reply
Moderator
Posts: 613
Joined: 2004.09
Post: #5
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.

Kyle Richter
DragonForged.com
Twitter: @kylerichter
Quote this message in a reply
Member
Posts: 178
Joined: 2008.09
Post: #6
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:
https://developer.apple.com/iphone/libra...index.html

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
Member
Posts: 178
Joined: 2008.09
Post: #7
i got i ... thanks you.
4 days later but i know how.
thanks again a lot !

my iphone website: http://www.elsalvadorguia.com
intel Imac 20", iphone 8GB (2G)
Quote this message in a reply
Apprentice
Posts: 9
Joined: 2011.06
Post: #8
See example 2, PNG animation here:

http://www.modejong.com/iOS/#ex2

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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Question about animation in an iPhone game stansoft 7 9,813 Oct 4, 2011 04:55 AM
Last Post: Neison