title: How do I configure my app to detect shake motion events?
body: <p>So let me clarify first off with showing what code i have implemented</p>
  
  <pre><code>-(BOOL)canBecomeFirstResponder 
  {
      return YES;
  }
  
  - (void) viewWillAppear:(BOOL)animated 
  {
      [super viewWillAppear:animated];
      [self becomeFirstResponder];
  }
  
  - (void) viewDidAppear:(BOOL)animated
  {
      [super viewDidAppear:animated];
      [self becomeFirstResponder];
  }
  
  - (void)viewWillDisappear:(BOOL)animated 
  {
      [self resignFirstResponder];
      [super viewWillDisappear:animated];
  }
  
  - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event
  {
      if (motion == UIEventSubtypeMotionShake)
      {
          NSLog(@"FUUU");
      }
  }
  
  - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
  {
      if (motion == UIEventSubtypeMotionShake)
      {
          NSLog(@"FUUU");
      }
  }
  </code></pre>
  
  <p>this is all in a UIViewController class</p>
  
  <p>and in <code>- (void) applicationDidFinishLaunching:(UIApplication*)application</code> i have set </p>
  
  <pre><code>[application setApplicationSupportsShakeToEdit:YES];
  </code></pre>
  
  <p>Yet it does nothing, not nary single motion detected. I'm not sure what else to do. This seems to have worked for many other people, so i am baffled as to why i am different...Could it be because it's through a UINavigationController? or because i load the main application via a plist and my main looks like so </p>
  
  <pre><code>retVal = UIApplicationMain(argc, argv, nil, nil);
  </code></pre>
  
  <p>I am quite thoroughly stumped.</p>