title: UIBarButtonItem crashes iphone app when button is clicked
body: <pre><code>UIBarButtonItem *rButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:NULL];
  
  rButton.action = @selector(refreshAction);
  self.navigationItem.rightBarButtonItem = rButton;
  [rButton release];
  </code></pre>
  
  <p>The above code works fine to create a button and add it to the navigation bar, but when I click on the button it crashes the app with a EXC_BAD_ACCESS. If I comment out rButton.action = @selector(refreshAction); clicking the button won't do anything but it doesn't crash either. </p>
  
  <pre><code>- (void)refreshAction {
      NSLog(@"refreshAction");
  }
  </code></pre>
  
  <p>This code is in a TableViewController's viewDidLoad method which is pushed onto the navigationController stack from the NavigationViewController viewDidLoad method.</p>
  
  <p>I've spent probably 3 hours trying to get this to work, to no avail.</p>