Ken Burns effect on iPhone views
-
20-08-2019 - |
Question
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...
Solution
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
OTHER TIPS
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow