title: How to change the background color of NavigationBar in iOS 7
body: <p>I'm new to Objective-C, today I tried to change color of my Navigation Bar and this works with this code:</p>
  
  <p><strong>appDelegate.m</strong>:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      [[UINavigationBar appearance] setBarTintColor:UIColorFromRGB(0xf4f4f4)];
  
      return YES;
  }
  </code></pre>
  
  <p>Now I try change specific ViewController navigation bar and this do not work.</p>
  
  <p><strong>ViewController2.m:</strong></p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      [[UINavigationBar appearance] setBarTintColor:UIColorFromRGB(0x363636)];
      self.navigationController.navigationBar.translucent = NO;
  }
  </code></pre>
  
  <p>When I enter this ViewContoller his Navigation color is <code>f4f4f4</code> and when I go other ViewController and come back it changes the color to <code>363636</code>.</p>
  
  <p>Why this do not work in first time?
  Can somebody explain this to me..</p>
  
  <p>(Sorry About my English, and thank you.)</p>