5.1 Accelerometer to move an image xcode iphone sdk

Loading...

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

Uploaded by on Mar 3, 2011

We use the iphones Accelerometer to move an image on the screen. First step is to NSLog the accelerometer values out to the console, then to use those values to move a UIImage View around the screen.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • Very cool and objective tutorial, congratulations, I liked a lot! =D

  • Nice tutorial! I am wondering how could we do the same thing but with more object on the screen. ie. populate the view with 100 balls and when we move the iPhone, all balls would move... I think the trick is how to populate the ball in the view each one in one different position, right ? cheers mate!

  • you are damn good ! please keep posting more

  • Wow again, this is great! ty. I am learning so much from you.

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