Saturday, November 7, 2009

Change navigation bar color in iphone sdk

here is how ou change your navigation bar color.

navigationController.navigationBar.tintColor=[UIColor colorWithRed:42/256.0 green:60/256.0 blue:80/256.0 alpha:1.0];

just replace the (42,60,80) to your desired RGB Value.

5 comments:

  1. Wich directory do you have to go to?

    ReplyDelete
  2. Excellent! Thank you! This is exactly what I needed. You're the best!

    ReplyDelete
  3. also:
    [[navigationController navigationBar] setTintColor:[UIColor redColor]];

    ReplyDelete
  4. Just have to recommend you one great online shop, Japan Best.

    ReplyDelete