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

drf1229

macrumors regular
Original poster
Jun 22, 2009
237
0
The weirdest thing happened with touchesMoved. I have it declared like this:
Code:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
	
    UITouch *touch = [touches anyObject];
	if ([touches count]==1){
	
		
		if (CGRectContainsPoint([imageView frame], [touch locationInView:MyView])) {
//The code to be executed...		

}
}
}
The code executes when I start outside of the image and move to the image yet strangely doesn't work when I start inside the image and move. Has anyone else experienced anything like this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.