title: UIPopoverControllerDelegate methods never being called
body: <p>This has me scratching my head. I have a view controller that implements <code>UIPopoverControllerDelegate</code>:</p>
  
  <pre><code>@interface MyViewController : UIViewController&lt;UIPopoverControllerDelegate&gt; {
  </code></pre>
  
  <p>It implements the methods in that protocol, like so:</p>
  
  <pre><code>- (bool)popoverControllerShouldDismissPopover
  {
      NSLog(@"THIS IS NEVER CALLED");    
      return true;
  }
  
  - (void)popoverControllerDidDismissPopover
  {
      NSLog(@"THIS IS ALSO NEVER CALLED");
  }
  </code></pre>
  
  <p>I create the view controller to be shown in a popover, and the popover controller, like so:</p>
  
  <pre><code>-(IBAction)buttonPress:(id)sender
  {
      self.popoverViewController = [[MyPopoverViewController alloc] init];
      self.popover = [[UIPopoverController alloc] initWithContentViewController:popoverViewController];
      self.popover.delegate = self;
  
      CGRect frame = button.frame;
      [self.popover presentPopoverFromRect:frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
  }
  </code></pre>
  
  <p>I'm very clearly setting <code>popover.delegate = self</code>. <em>HOWEVER</em>, the <code>popoverViewController</code> delegate methods I've implemented are never being called.  </p>
  
  <p>Any ideas?   </p>
  
  <p><strong>Edit:</strong> Note, I'm using ARC &amp; LLVM.</p>