Colors and buttons change tinting behavior of iPhone navigationBar

I was wondering why everything stops behaving as it should when I do something like this:

self.navigationController.navigationBar.tintColor = [UIColor blackColor];

All my buttons on the navigation bar are now black, regardless of style, like this one below, it should appear like a blue button:

    UIBarButtonItem *editButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStyleDone target:self action:@selector(editTrip)];

It is not, just black.

Did a small change / effect in the button disappear when I clicked on it?

Is there a way to change the color of the navigation bar and possibly even the UIbarButtonItems without any disruption to the standard behavior?

This is really weird. I just checked the Apple "Remote" application, it has a black navigation bar and a blue "Finish" button to exit the "Help" section.

Do I need to create everything to achieve this?

Thanks for any help provided :)

+3
1

Builder . .

, Interface Builder barStyle UIBarStyleBlack UIBarStyleBlackTranslucent, .

+4

Source: https://habr.com/ru/post/1722302/


All Articles