views:

197

answers:

2

This is an iPhone programming question. How to limit a UIImageView to move in a specific path?

The path is a circle, and I want the UIImageView to follow exactly the perimeter of the circle. How can I achieve it?

+2  A: 
mahboudz
um... this is for Mac OS X... not for iPhone.
Shivan Raptor
Could have fooled me since this is the code I'm running in my iPhone app. Minor differences.
mahboudz
Yes, the only thing I see in that code that doesn't exist on the iPhone is the NSRect structure used in one place. The remainder of the Core Animation code for moving the layer around a path is identical between Mac and iPhone.
Brad Larson
A: 

For code to animate a UIImageView along a path, see my answer to this question.

Brad Larson