how to check shake effect in iPhone simulator?

30k views Asked by At

I am using Xcode.

I have implemented the shake code. Now I want to check whether that code works or not.

How do I shake iPhone simulator??

6

There are 6 answers

4
Aviad Ben Dov On BEST ANSWER

In the Hardware menu, choose Shake Gesture.

0
criscokid On

I could be wrong but I'm pretty sure I have seen a simulate shake command in one of the simulator's menus.

0
Kendall Helmstetter Gelner On

Aviad has the right answer, but it assumes that you are using the Shake event on the iPhone, and not a custom shake handler that works with the accelerometer.

0
Neo42 On

This tutorial on implementing shake with 3.0 seems very good. Best I've found so far.

Yes, the shake gesture is in the simulator's hardware menu. For other details, see the tutorial.

http://www.mobileorchard.com/new-in-iphone-30-tutorial-series-part-1-shake-to-undoredo-nsundomanager/

0
Elye On

The shortcut for shake is Control+Command+Z

0
jeet.chanchawat On

It is now moved -

Device -> Shake