title: How to add Bar Button in navigation bar without navigation controller.
body: <p>I am new to iOS development.I have create a navigation bar in my iPad application view.I don't need navigation controller that's why i have added only navigation bar. Now i want to add button in that navigation bar.I tried a lot but no success. Is it possible to add only navigation bar with button ? If yes then suggest me some sample code.</p>
  
  <p>"i don't have navigation controller or need it. i just want to add navigation bar in only one view."</p>
  
  <p>Bellow is my code which i write for adding navigation bar in ViewDidLoad()</p>
  
  <pre><code>UINavigationBar *navBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 1026, 50)];
  [navBar setTintColor:[UIColor blackColor]];
  [navBar setDelegate:self];
  [self.view addSubview:navBar];
  </code></pre>
  
  <p>Thanks in advance.... </p>