title: Replace navigation bar cancel button with back button
body: <p>I have a table view controller embedded in a navigation controller. The table cells are all static and selecting any of them will segue to another table view. When segue happened, the navigation bar shows 'Cancel' button for the new view, instead of 'Back' button. </p>
  
  <p>I could add a back button in code like</p>
  
  <pre><code>- (void)viewDidLoad
  {
      self.navigationItem.backBarButtonItem =
          [[UIBarButtonItem alloc] initWithTitle:@"Back"
                                           style:UIBarButtonSystemItemCancel
                                          target:nil
                                          action:nil];
      self.navigationItem.leftBarButtonItem = self.navigationItem.backBarButtonItem;
  }
  </code></pre>
  
  <p>But then the back button would be a rectangle shape, not the default back button shape which has an angle on the left edge. How to simply change the cancel button to a system back button?</p>
  
  <p>Here is my code for segue from table cell to the next table view</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
      switch (indexPath.row) {
          case 0:
              [self performSegueWithIdentifier:@"goToSecondTable" sender:self.tableView];
              break;
          /* and perform segue for other rows */
          default:
              break;
      }
  }
  </code></pre>
  
  <p>And there is nothing to do inside prepareForSegue.</p>
  
  <p>Here is what the connections inspector showed</p>
  
  <p><img src="https://i.stack.imgur.com/J83aJ.png" alt="connections inspector"></p>
  
  <p>And Here is the connections for the 'Bar Button Item - Back'</p>
  
  <p><img src="https://i.stack.imgur.com/GUinW.png" alt="Bar Button Item - Back"></p>