Can someone tell me how I can set the colour of a navigation bar in a view controller?
I used this:
UINavigationBar *navigationBar = self.navigationController.navigationBar;
[navigationBar setBackgroundColor:[UIColor redColor]];
self.navigationController.navigationBar.tintColor = [UIColor redColor];
Can someone can tell me what is tintColor and how it differs from the backgroundColor?
backgroundColorandbarTintColorthat you should worry about;tintColoris unrelated.