Re: Displaying animated content in iPhone app
Re: Displaying animated content in iPhone app
- Subject: Re: Displaying animated content in iPhone app
- From: glenn andreas <email@hidden>
- Date: Thu, 28 Jan 2010 08:47:17 -0600
On Jan 28, 2010, at 8:22 AM, patrick machielse wrote:
> I'm working on an iPhone application and I need some advice on displaying animated content (think: cartoon like movies). Hopefully someone can point me in the right direction.
>
> Goal
> ----
> The application needs to display short 2 second 'clips' of animated characters in a loop. Animation can be triggered by tapping the screen.
>
> So, what are the current options for displaying movie like content in your app and have a decent control over playback and display?
>
For simple "flipbook style" animation, you can load up all the frames as an array of UIImages and then use a UIImageView's animationImages to display them. Doesn't give you a whole lot of control (you basically get to set the frame rate, number of times to loop and the frames) but this approach works reasonable for handling things like animated GIFs (provided that you write the code to decode the GIF files into the frames you need).
Glenn Andreas email@hidden
The most merciful thing in the world ... is the inability of the human mind to correlate all its contents - HPL
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden