ios - How to draw on screen using hand gestures in iPhone SDK? -


i want draw on screen moving fingers across screen.

how can achieve in iphone sdk?

you first need implement touch sensing methods uiresponder chain. methods need implement are

- (void)touchesbegan:(nsset *)touches withevent:(uievent *)event - (void)touchesmoved:(nsset *)touches withevent:(uievent *)event - (void)touchesended:(nsset *)touches withevent:(uievent *)event 

inside methods can use core graphics drawing methods draw custom drawing. this tutorial walk through steps.


Comments