I think I've done all I should to detect a shake, but motionEnded:withEvent:
never gets called. (One wrinkle is that I don't have a UIViewController
- my app is based on the "OpenGL ES App" template.)
I've added application.applicationSupportsShakeToEdit = YES;
to my application:didFinishLaunchingWithOptions:
, and
- (BOOL)canBecomeFirstResponder { return YES; }
to EAGLView.m (which does get called), and [self becomeFirstResponder];
to initWithCoder:
(and have tried various other places too).
But the debugger never hits
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
Am I missing some step? Do I have to have a controller?
(I'm using iOS 3.2 in the iPad simulator.)