title: How to add a right button to a UINavigationController?
body: <p>I am trying to add a refresh button to the top bar of a navigation controller with no success.</p>
  
  <p>Here is the header:</p>
  
  <pre><code>@interface PropertyViewController : UINavigationController {
  
  }
  </code></pre>
  
  <p>Here is how I am trying to add it:</p>
  
  <pre><code>- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
      if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
          UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Show" style:UIBarButtonItemStylePlain
                                            target:self action:@selector(refreshPropertyList:)];      
          self.navigationItem.rightBarButtonItem = anotherButton;
      }
      return self;
  }
  </code></pre>