iphone is shaked

Discussion in 'iOS Programming' started by pashik, Jul 26, 2008.

  1. macrumors member

    Joined:
    Jul 16, 2008
    #1
    Hi.

    how i can programmatically determine that iphone was shaked?

    thanx in advance for reply.
     
  2. macrumors 65816

    italiano40

    Joined:
    Oct 7, 2007
    Location:
    NY
    #2
    you want to get the X vaule from the UIAcceleration class and keep updating it, and if it changes in a big value, so would want to do the
    get - new vaule> a big number{ then what you want to do on shake
     

Share This Page