Simulatorで加速度センサーを使う。

iPhoneのシミュレーターでは加速度センサーを使えない。
しかし、http://www.brianhpratt.net/cms/index.php?page=accsimを使うと、
シミュレーターで加速度センサーを使う事が出来るようになる。

まずは、AppStoreでaccelerometer-simulator(無料)
http://itunes.apple.com/jp/app/accelerometer-simulator/id336476721?mt=8
を取得。

次に、AccelerometerSimulation.hとAccelerometerSimulation.mを公式HPから取得し、
XCodeを立ち上げて、適当な場所に追加。
xxxxViewControllerに
#import "AccelerometerSimulation.h"
を追記。

シミュレーターを開始した後、
iphoneにてAccSimを立ち上げ、送信先(Mac)のIPアドレスを設定。
これで、Web経由で加速度センサーの情報を送って、
シミュレーター側で受け取ってくれる。