Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Using the shake feature - Accelerometers !!!

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,502
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 21, 2009

this is a quick tutorial showing you guys how to use the shake feature in your application!

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • @jklzslc its the axes you can shake your device in...

  • "Great ,Help Appreciated!"

  • sorry ignore the spaces between UIAccelerometer, they shouldn't be there

  • For anyone who is receiving the member error you will need to change

    - (void)accelerometer:(UIAcceler­ometer *)accelerometer didAccelerate:(UIAccelerometer *)acceleration

    to

    - (void)accelerometer:(UIAcceler­ometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration

    its need to UIAcceleration rather than UIAccelerometer here, hope this helps

  • Very nice tutorial.

  • woah some competition there

  • so if i wanted it to go to a different screen when I shake it...what would be the code for it!!!!?!!?!

    PLEASE REPLY!!!

  • i get these same errors too.. error:request for member 'x' in something not a structure or union

    error:request for member 'y' in something not a structure or union

    error:request for member 'z' in something not a structure or union

    why is this?

  • It probably only works for version 3.0 coz that's wat he's using.

  • This made my day!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more