tags:

views:

1443

answers:

5

I am using XCode..

I have implemented the shake code.

Now I want to check - weather that code works or not..

But how to shake - iPhone simulator??

+18  A: 

In the Hardware menu, choose Shake Gesture.

Aviad Ben Dov
@Dov - will you plz explain me after selectng Shake Gesture option?What to do to shake?
sugar
That's it. Your shake handler should be called when you do so.
Aviad Ben Dov
+3  A: 

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

criscokid
+4  A: 

Pray for an earthquake.

Spencer Ruport
LOL (and this to make it least 15 chars)
BlackTigerX
+1  A: 

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.

Kendall Helmstetter Gelner
+2  A: 

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/

Neo42