title: Navigation Item not appearing on View Controller
body: <p>I apologize I am new to iphone programming.</p>
  
  <p>I have created a Master-Detail Iphone application (so Navigation Controller came with the project). I segue to a new view controller I created through a UIBarButtonItem on the masterviewcontroller. However unlike the detailviewcontroller (that came with the project) I can not seem to get the navigationitem (or navigationbar?) to display on the view even though it appears in the scene list of my storyboard.</p>
  
  <p>Heres some code and a screenshot:</p>
  
  <p>In my masterviewcontroller.m viewdidload() function</p>
  
  <pre><code>UIBarButtonItem *settingsButton = [[UIBarButtonItem alloc] initWithTitle:@"Settings" style:normal target:self action:@selector(goToSettings:)];
  self.navigationItem.leftBarButtonItem = settingsButton;
  </code></pre>
  
  <p>in my masterviewcontroller.m</p>
  
  <pre><code>- (IBAction)goToSettings:(id)sender{    
      [self performSegueWithIdentifier:@"SettingsSegue" sender:self];
  }
  </code></pre>
  
  <p>I tried adding a title to the navigationitem during the viewDidLoad function of the new viewcontroller.m class i created (mentioned in this <a href="https://stackoverflow.com/questions/3420862/back-navigation-button-not-showing-up-in-pushed-view-controller">Link</a> but it didn't work)</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
      self.navigationItem.title = @"Settings";
      self.navigationItem.leftBarButtonItem = self.editButtonItem;
  }
  </code></pre>
  
  <p>But it still shows up in my storyboard ( it shows up in the list under the scene but not in the display of the view)</p>
  
  <p>So my question is why is it now showing up and how do I get it to? I want a back button like my detail view controller that came with the master-detail project.</p>
  
  <p>EDIT#1</p>
  
  <p>I have added a check for whether navigation controller is nil and it is not nil (the if statement is never entered) I also tried changing the navigation item to back and removing and none has worked.</p>
  
  <pre><code>if(self.navigationItem == nil)
  {
      [ self.navigationItem init];
  }
  self.navigationItem.title = @"Settings";
  self.navigationItem.leftBarButtonItem = self.navigationItem.backBarButtonItem;
  </code></pre>
  
  <p>Now that I have enough reputation to show an image I can show that the navigation item shows up in the list but doesnt show up on the view</p>
  
  <p><img src="https://i.stack.imgur.com/P1wkV.png" alt="enter image description here"></p>