title: How to change the bar color in UIImagePicker?
body: <p>I am trying to color the bars in the camera view black. None of the below approaches worked so far. There are 2 views that I want to change, the first with the camera icon and "cancel", the second with the "retake" and "use" buttons. Any ideas?</p>
  
  <pre><code>- (void)openCamera {
      UIImagePickerController *picker = [[UIImagePickerController alloc] init];
      picker.delegate = self;
      picker.sourceType = UIImagePickerControllerSourceTypeCamera;
      picker.navigationBar.barStyle = UIBarStyleBlackOpaque;
      picker.toolbar.barStyle = UIBarStyleBlackOpaque;
      picker.navigationBar.tintColor = [UIColor blackColor];
      [self presentModalViewController:picker animated:NO];
  }
  
  - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
  {
      UIImagePickerController *picker = (UIImagePickerController *)navigationController;
      if((picker)&amp;&amp;(picker.sourceType == UIImagePickerControllerSourceTypeCamera))
      {
          picker.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
          picker.navigationController.toolbar.barStyle = UIBarStyleBlackOpaque;
          picker.navigationBar.tintColor = [UIColor blackColor];
      }
  }
  </code></pre>