motion callbacks never called
<p>I'm trying to make a shake events.
I tried:
1) <a href="http://stackoverflow.com/questions/150446/how-do-i-detect-when-someone-shakes-an-iphone">How do I detect when someone shakes an iPhone?</a> (posts of Kendall, and Eran)
2) <a href="http://stackoverflow.com/questions/1342674/motionbegan-not-working">motionBegan: Not Working</a>
but nothig helps.
My View becomes first responder, but motionBegan/motionEnded never called.
Is there some additiol settings must be done, or i'm missing somethig? My iOS SDK is 4.3.</p>

<p>I have a class of UIView:</p>

<pre><code>  #import "ShakeView.h"

    @implementation ShakeView
    - (BOOL)canBecomeFirstResponder {
        return YES;
    }
    - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
        NSLog (@"123");
        if ( event.subtype == UIEventSubtypeMotionShake ) {
            NSLog(@"Shake!");
        }

        if ([super respondsToSelector:@selector(motionEnded:withEvent:)]) {
            [super motionEnded:motion withEvent:event];
        }
    }
    @end
</code></pre>

<p>In my ViewController's xib class of View is ShakeView.
my ViewController pushed:</p>

<pre><code>Wheel *secondViewController = [[Wheel alloc] initWithNibName:@"Wheel" bundle:nil];
    [self.navigationController pushViewController:secondViewController animated:YES];
    [secondViewController release];
</code></pre>

<p>In my ViewController:</p>

<pre><code>- (void) viewDidAppear:(BOOL)animated
{
    [self.view becomeFirstResponder];
    [super viewWillAppear:animated];
    NSLog(@"%d", [self.view isFirstResponder]);
}
- (void) viewWillDisappear:(BOOL)animated
{
    [self.view resignFirstResponder];
    [super viewWillDisappear:animated];
}
</code></pre>

<p>It logs "1", so it IS first responder. But it logs nothing else.</p>

<p>I spend a half day on this few lines of code, and I have no more ideas. Do anyone knows how to solve it?
Thanks.</p>
