title: Add navigation bar on a view controller
body: <p>i am new on iOS and i wanna add a navigation bar on my view controller with 2 buttons back on left and subscribe on right. ive got no clue how to do it..till now i have just added a nav bar from interface builder, created a (strong)refrnce for it in .h file and did following coding.</p>
  
  <pre><code> navBar = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 20, 1026, 50)];
  [navBar setTintColor:[UIColor clearColor]];
  [navBar setBackgroundColor:[UIColor redColor]];
  [navBar setDelegate:self];
  [self.view addSubview:navBar];
  UIBarButtonItem *bi1 = [[UIBarButtonItem alloc] initWithTitle:@"subscribe" style:UIBarButtonItemStyleBordered target:self action:@selector(editBotton)];
  
  bi1.style = UIBarButtonItemStyleBordered;
  
  bi1.tintColor =[UIColor colorWithWhite:0.305f alpha:0.0f];
  
  self.navigationItem.rightBarButtonItem = bi1;
  </code></pre>
  
  <p>but nothings happeing.. please help</p>