Change Color from "Large" UINavigationBar - ios

I'm facing a problem with a "Preferred Large Title" UINavigationBar.
I use in UINavigationController in ViewDidLoad:
self.navigationBar.backgroundColor = [UIColor yellowColor];
But for iPhoneX I see the view's background colors on TopBar! I will set the yellow color complete to the top.
See Screenshot

Related

How can I set the correct Nav Bar tint color?

I am creating a title view in my navigation bar. I designed my title view with background view color R:255 G:182 B:22 (on photoshop). In my storyboard, I've set the navigation bar tint color with the same RGB code, default style and translucent checked.
I put my image on my navigation title using:
UIImage *titleImage = [UIImage imageNamed:#"Icon-Small-40.png"];
self.navigationItem.titleView = [[UIImageView alloc]initWithImage:titleImage];
When I run the app, you can clearly see a square icon in the title view. The title view has a slightly darker background. I want to make the background the same color. I get the feeling that it has something to do with some storyboard setting but I can't find the issue.
the view has a tintColor property, so
self.navigationItem.titleView.tintColor = ...
Below answer for your navigation bar tint color
self.navigationController.navigationBar.tintColor = [UIColor greenColor];
Trying to make colours match up like this can be maddening. Colour space problems aside, the actual colour of the navigation bar isn’t guaranteed by the API to be the same as its barTintColor. You might find it easier to give the title image a transparent background.

How to change iOS app's background image?

I want to change my app's whole background image to black, including the status bar and navigation bar, because I want to use black underpainting and gray font color. How can I do this?
You can change the view into UIButton, UILabel, UIImageView, etc.
view.backgroundColor = [UIColor blackColor];

change navigationbar button colors for ios7

I am trying to find out how to change the text and arrow color of the UINavigationBar buttons.
I know how to change the titleTextAttributes but cannot find out how to do it to the buttons.
For example this is how I change the titleTextAttributes inside my AppDelegate
self.navigationController.navigationBar.titleTextAttributes = #{NSForegroundColorAttributeName : [UIColor redColor]};
I have looked through the UINavigationBar docs and cannot find any button attributes so not sure what to do here.
to change the text color and the color of the arrow in the navigation bar you can use this code (iOS 7):
self.navigationController.navigationBar.tintColor = [UIColor redColor];
this code will also change the color of the buttons
You can globally change it as easy as this

Why isn't the status bar adjusting the color of its text to match my UINavigationController?

I have an app that uses a navigation bar with a dark gray background color and a white title. According to this article, under "UINavigationController and the iOS7 Status Bar", it says that it should that as long as I am using a navigation controller, the status bar should automatically adjust its text color to match it. Here is a screenshot of the top of my app:
As you can see, the navigation controller's title was set to white, so shouldn't the status bar be set to white too? Here's my code for the navigation controller's color adjustment:
UINavigationController* navStack = [[UINavigationController alloc] initWithRootViewController:mainFeed];
navStack.navigationBar.barTintColor = [UIColor colorWithRed:20/255.0f green:20/255.0f blue:20/255.0f alpha:1.0f];
navStack.navigationBar.tintColor = [UIColor whiteColor];
[navStack.navigationBar setTitleTextAttributes:#{NSForegroundColorAttributeName : [UIColor whiteColor]}];
You need to add this in:
navStack.navigationBar.barStyle = UIBarStyleBlack;
What that article says is a bit misleading.

How can I change the popover color frame?

I would change the popover color in an ipad splitview application.
So I would change the default blue color:
in a red color for example. How can I do?
Sadly you cannot achieve that as per documentation.
Stated here: iPad - Popover frame color
All you could do it to set the color for the landscape mode as follows:
self.navigationController.navigationBar.tintColor = [UIColor orangeColor];

Resources