after reading some posts about implementing shaking on 3.0, I think I get the idea but I'm not getting any call to the:
motionBegan motionEnded motionCancelled
this is an example of what I've read: how to detect and program around shakes for the iphone
I'm sure I've added the
[self becomeFirstResponder];
and the
-(BOOL)canBecomeFirstResponder {
NSLog(@"First responder");
return YES;
}
Should I enable a special delegate for those events ?
I understand that those events are controlled by the system, and they are passed to the first responder, and go on ...
any idea ?
thanks,
r.
I had loads of problems getting this to work and I finally gave up and followed jandrea's advice. He suggested subclassing UIWindow and implement the motionEnded there. This is a quote from his post here, look for it quite far down.
Where do you call
becomeFirstResponder
? You should do it inviewDidAppear
. Does this get fired?