title: UISegmentedControl in the Navigation Bar with the Back button
body: <p>I'm adding a <code>UISegmentedControl</code> to the Navigation bar programatically where the <code>titleView</code> should be. But as <a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationItem_Class/Reference/UINavigationItem.html" rel="noreferrer">Apple docs</a> have mentioned under <code>titleView</code>, <em>This property is ignored if leftBarButtonItem is not nil</em>.</p>
  
  <p>But I want to have the back button as well. Like they have illustrated in their own images!</p>
  
  <p><img src="https://i.stack.imgur.com/FiBvc.jpg" alt="enter image description here"></p>
  
  <p>Below is the code I add the <code>UISegmentedControl</code>.</p>
  
  <pre><code>self.navigationItem.leftBarButtonItem = nil;
  UISegmentedControl *statFilter = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"Filter_Personnal", @"Filter_Department", @"Filter_Company", nil];
  [statFilter setSegmentedControlStyle:UISegmentedControlStyleBar];
  self.navigationItem.titleView = statFilter;
  </code></pre>
  
  <p>Is there another way to add a <code>UISegmentedControl</code> along with the Back button as well?</p>
  
  <p>Thank you.</p>