Monitoring distance finger travels in X or Y direction

Discussion in 'iPhone/iPad Programming' started by RPGamerL99, Nov 9, 2008.

  1. macrumors newbie

    Joined:
    Mar 10, 2008
    #1
    Is there an easy way for me to see how far the user drags his/her finger on the screen?
     
  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
  3. macrumors regular

    Joined:
    Mar 24, 2008
    #3
    Basically, you save a CGPoint to an instance variable when touchesBegan, then compare that when touchesMoved
     

Share This Page