views:

888

answers:

4

Hey,

are there any exisiting approaches on how to apply Ken Burns slideshow effects (take a look at a javascript demo: slideshow demo site) to a view?

Regards...

+1  A: 

I don't think there is any ready-to-use APIs, but you can easily create Ken Burnsish effects by animating an UIImageView's bounds attribute. Look up the animation API on UIView. Just a handful lines of code will do it.

Felixyz
Thanks, I'll look it up.
Stefan
+1  A: 

Hi there,

The basic concept is to set up the change you want applied to you view and then commit the animation.

[UIView beginAnimations:nil context:NULL];

[UIView setAnimationDuration:5];
[UIView setAnimationTransition: ...zoom, pan, whatever... cache:YES];

[UIView commitAnimations];

Cheers, niels

Niels Castle
A: 

Hi Stefan, I need some help with Ken burns effect in iphone development. Can you help me out with some directions and codesnippets.

Thanks, iccha.

iccha
+1  A: 

Hi niels, I used the animation block as you mentioned. Would you please write down the full version of code? BTW, the ken burns effect in the iPhoto change the alpha info at the end of the animation. So it means we should change the frame first, and choose a right time to commit the animation of alpha info. Do you have any good idea?

Thanks Leon

Leon