[ACCEPTED]-How to change UINavigationController background color?-uinavigationbar

Accepted answer
Score: 10

You need to do this:

self.tintColor = [UIColor colorWithRed:(26.0f/255.0f) green:(103.0f/255.0f) blue:(159.0f/255.0f) alpha:1.0f];

Otherwise you're doing 4 integer arithmetic and you'll end up with 3 0 for all of them probably. Use floating 2 point arithmetic and you get the values 1 you desire.

Score: 8

This Works for me

self.navigationController.navigationBar.backgroundColor= [UIColor colorWithRed:57.0/255.0 green:158.0/255 blue:209.0/255 alpha:1.0];

0

More Related questions