i am currently making a iPhone app, and a animation reacts to a small shake, this is my code:
static BOOL SJHShaking(UIAcceleration* last, UIAcceleration* curren
Just have a variable that gets set when they press the button. Then in the method that determines whether a shake has taken place, first check whether the button has been clicked.
For example, in the didAccelerate method, you could first check if the button had been pressed, and if not, just return.