Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ethana

macrumors 6502a
Original poster
Jul 17, 2008
836
0
Seattle, WA
Ok, I need some help here. I have two UIImageViews. One of the left, which is user controlled with a finger drag. The other is on the right, which moves closer 3 pixels every 0.005 seconds with NSTimer.

Currently I can detect when they intersect using this:

Code:
if (CGRectIntersectsRect(theImageViewLeft.frame, theImageViewRight.frame))
The problem is, when the user is dragging around the left image, the animation for the right image(s) really starts to slow down... BIG time. It gets all jerky and just looks horrible. Is my problem that I am using NSTimer? Should I use another form of animation, like Core Graphics? If so, how do I detect when images intersect?

Thanks for the help in advance.

Ethan
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.