1

I would like to detect touchesBegan, touchesMoved, touchesCancelled, and touchesEnded when using the keyboard on the iPhone.

Is there any way to get the UITouch? I would like to get the location of the touch on the keyboard.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Mark
  • 113
  • 7
  • the general way to get touch event location anywhere is listed below: https://stackoverflow.com/questions/10556120/how-to-get-a-cgpoint-from-a-tapped-location You probably need to change "anyObject" to the keyboard object, but not sure how – n4feng Oct 20 '17 at 15:39
  • @n4feng Thank you. However, I want to be able to detect touchesBegan, touchesMoved, touchesCancelled, and touchesEnded. – Mark Oct 20 '17 at 15:41
  • That is fine, you should be able to override the handler of the UITouch object. For example [super touchesBegan:touches withEvent:event]; – n4feng Oct 20 '17 at 15:45

0 Answers0