How can i test tilt efftect? - IPhone Simulator

后端 未结 6 1538
-上瘾入骨i
-上瘾入骨i 2021-02-13 12:51

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...

6条回答
  •  忘了有多久
    2021-02-13 13:09

    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.

提交回复
热议问题