UIButton TouchUpInside Touch Location
UITouch *theTouch = [touches anyObject]; CGPoint where = [theTouch locationInView:self]; NSLog(@” touch at (%3.2f, %3.2f)”, where.x, where.y); That’s the right idea, except that this code is probably inside an action in your view controller, right? If so, then self refers to the view controller and not the button. You should be passing a pointer to … Read more