0

I am BRAND new to iOS development and am building my first app using Xcode 4.3.2 for iOS5. I am also using storyboards.

I want the background color of my navigation bar to be black instead of the default blue color for all of my views in the storyboard. I have researched everywhere and cannot find anything that works. Either the code generates error messages or its not clear (to me) where to put it. Can anyone help?!!!

Axel Isouard
  • 1,498
  • 1
  • 24
  • 38
jac300
  • 5,182
  • 14
  • 54
  • 89
  • Welcome to Stack Overflow ! Please provide more details as your attempts and the error messages you've encountered. – Axel Isouard Sep 28 '12 at 07:40

1 Answers1

0

Have you tried...

UIImage *image = [UIImage imageNamed:@"navBarImg.png"];
[self.navigationController.navigationBar setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];

Also check out this -link- for more info relating to your question.

wigging
  • 8,492
  • 12
  • 75
  • 117
  • thanks, but I'm not sure where to put this? I was under the assumption that I need to write code into the app delegate or in a custom class...but in either/any case I still need a bit more information since I'm so new to this. – jac300 Sep 25 '12 at 16:30
  • @user1697845 I added a link in my answer that will provide more info on the topic. – wigging Sep 25 '12 at 16:42