Accelerometer in Simulator

I had a vague awareness that things like this were out there, but finally went ahead and tried this one. Works great.

http://code.google.com/p/accelerometer-simulator/wiki/Home

Basically, you check out this XCode project, fix it up so you can provision it to your own phone. Add a single class and a single import to the project you want to use it in, then run the simulator app on your phone. The app looks like this on your phone:

You can either use the actual accelerometer on the device, or manually set acceleration values using the sliders. Then you run your own project in the simulator. Voila! You move the phone, the simulator thinks it’s getting accelerometer data. Love it.

If they added touches, it would be the ultimate. Kind of a pain to tilt the device while using the mouse on the simulator. But not sure how well that would actually work anyway.

This entry was posted in iPhone, Objective C. Bookmark the permalink.

One Response to Accelerometer in Simulator

  1. Sebastien says:

    Thanks!
    Added some suggestions to Apple in my blogpost 🙂

Leave a Reply