iPhone show touch location
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *) event { UITouch *touch = [touches anyObject]; CGPoint location = [touch locationInView: self.view]; NSLog(@"%f %f", location.x, location.y); }
Log in to answer.
leothenerd 5:29 pm on January 25, 2010