Reputation: 163
I am trying to write a game. That game uses tilt effect, but i don't know how to test it on Iphone Simulator 3.0. I search it on internet, but the result is zero. How can i...?
Upvotes: 14
Views: 17905
Reputation: 1
Upvotes: -3
Reputation: 1291
Just saw this when asking a similar question - you can actually set the interface orientation now in the new xcode, so even though you can't 'tilt' it directly, you can make it to where it only supports landscape - then it will load the landscape view in the emulator! :D
Upvotes: 0
Reputation: 2247
ON a related note, you can also capture accelerometer data from safari running on your iphone/ipad See this demo http://www.webdigi.co.uk/blog/2012/using-an-ios-device-to-control-a-game-on-your-browser/
Upvotes: 1
Reputation: 1222
Try https://code.google.com/p/accelerometer-simulator/. It does the same thing as iSimulate -- it sends accelerometer events from the phone to your computer -- but it's free and open source.
Upvotes: 2
Reputation: 85542
There's an application in the AppStore called iSimulate which lets you feed an actual device's accelerometer inputs into the sim. You do need to have a device for testing.
Upvotes: 1
Reputation: 18776
Short answer: You can't, not directly. You have to use a real device.
Longer answer: You could subclass UIAccelerometer
and do as you like. You could simulate input, or write a client and server pair that sends acceleration information from a real device to your app running in the simulator, or from your Macbook's accelerometer if you fancy waving your laptop around.
Upvotes: 13