UIScrollView content to track a CAKeyFrameAnimation along a path

Posted by CMLloyd on Stack Overflow See other posts from Stack Overflow or by CMLloyd
Published on 2011-03-03T15:22:59Z Indexed on 2011/03/03 15:24 UTC
Read the original article Hit count: 344

Filed under:
|
|

In my App I have a full-screen UIScrollView where the content is a UIImageView containing a map image which is about 2000px square (i.e. larger than the UIScrollView).

Currently, I plot a path across the map and animate a "beacon" image along it using a CAKeyFrameAnimation, which works great.

What I would like to be able to do is to make the UIScrollView content move with the animation in such a way as to keep the beacon image in the centre of the screen (giving the user the impression of tracking along the path).

Any suggestions on how I might achieve this?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiscrollview