title: Programmatically add a back button to a UINavigationBar?
body: <p>I am using the following code to achieve a navigation bar in my app. (my app was crashing when I used a push segue so I need a modal segue meaning the nav bar is hidden after the modal segue is called)</p>
  
  <pre><code>UINavigationBar *navbar = [[UINavigationBar alloc]initWithFrame:CGRectMake(0, 0, 320, 50)];
  //do something like background color, title, etc you self
  [self.view addSubview:navbar];
  </code></pre>
  
  <p>Does any one know any methods I can use with the above code to achieve back button functionality in the nav bar??</p>