Is there an easy way for me to see how far the user drags his/her finger on the screen?
R RPGamerL99 macrumors newbie Original poster Mar 10, 2008 18 0 Nov 9, 2008 #1 Is there an easy way for me to see how far the user drags his/her finger on the screen?
J jnic macrumors 6502a Oct 24, 2008 567 0 Cambridge Nov 11, 2008 #2 Check out the UITouch docs (https://developer.apple.com/iphone/...erence/UITouch_Class/Reference/Reference.html) and the "Touches" code sample (http://developer.apple.com/iphone/library/samplecode/Touches/).
Check out the UITouch docs (https://developer.apple.com/iphone/...erence/UITouch_Class/Reference/Reference.html) and the "Touches" code sample (http://developer.apple.com/iphone/library/samplecode/Touches/).
S SqueegyX macrumors regular Mar 24, 2008 108 1 Nov 11, 2008 #3 Basically, you save a CGPoint to an instance variable when touchesBegan, then compare that when touchesMoved
Basically, you save a CGPoint to an instance variable when touchesBegan, then compare that when touchesMoved