Environment: Xcode 8 and iOS 10.
I am try to set navigation bar color without writing codes.
This is my main UI color when the app is launched. I plan to set the Navigation bar with the same color. However, the color is a little light when it is tested.
As you can see, the color in Navigation bar is a light shade. I set the navigation bar color in the property attribute.
How to resolve this? Thanks in advance.
In attribute inspector, try unchecking Translucent property. And set Bar Tint property to your desired color.
Related
How can i change my navigation bar tint color?
enter image description here
I already set the bar tint color of navigation bar on attribute.
But nothing happened on the main storyboard and simulator.
What should i do to fix this?
Did i do something wrong when i created navigation controller?
I check some of the boxes on the attribute but it doesn't work.
I googled this problem solving but there is nothing for me.
I try to set the Bar Tint Color (in Interface Builder) on a UIToolbar that has translucent set to off. No matter the color I choose, the toolbar is always white in the emulator (it changes color in IB). I need to set translucent to true in order to have my UIToolbar with the right Bar Tint. From the Apple doc, I don't see anywhere mentioned that barTintColor is not working when translucent is set to false.
Thanks
Edit
It looks like this is an issue only in interface builder, setting Bar Tint Color in code is working, anyone can confirm?
from the docs
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIToolbar_Class/#//apple_ref/occ/instp/UIToolbar/translucent
If you set this property to NO on a toolbar with a translucent custom background image, the toolbar provides an opaque background for the image using black if the toolbar has UIBarStyleBlack style, white if the toolbar has UIBarStyleDefault, or the toolbar’s barTintColor if a custom value is defined.
I have a custom UINavigationBar which I am using to remove the gradient of the navbar in iOS 6. Though the color of the status bar is equal to the color of the screen opposed to the color of the bar
Is there a way to make them the same color or at least make the status bar black. My problem is in ios7.
Also if I change the style of the UINavigationBar translucent to NO like this:
self.navigationController.navigationBar.translucent = NO;
Then the status bar goes completely black with no writing on it.
In your project info plist, change UIViewControllerBasedStatusBarAppearance value, if there is no, then add this key.
Is there a way to set the status bar tint colour?
I have my navigationbar tint set to brown and when it's on screen it also changes the statusbar to brown, however on views that I hide the navigationbar the statusbar returns to its original colour.
How can I change the statusbar tint colour to persist trough the application?
There is no way in iOS 5. You can just change your bar style.
But if you take a look at new WWDC 2012 Sessions, you may find something interesting)
Session number 216 - Advanced Appearance Customization on iOS
Maybe keep the notification bar there but cover it up? If the notification bar's color influences that of the status bar, then it would lead me to believe that it just has to be in the window (even buried under another view) to change it.
There is no way in iOS 5 or ealier version of ios.
now ios 6 have feature to change status bar tint color or it will set according to navigation bar pattern Image
But u can use Custom Status Bar
What I do in screens that have no navigation bar is to put in a navigation bar at the top but behind the visible interface. The navigation bar is not visible to the user, but it is visible to the system and causes the status bar to adopt its color.
EDIT: Sorry, I see now that someone else had already suggested this. So I'm just confirming that it does work.
I am trying to tint my UI to a nice brown. The pop up associated with the splitter is blackish-blue. How do I change its tint to the one I have applied to the rest of the app?
Here's a picture:
When I change the tint in IB it then looks like this:
Unfortunately the border can not be changed from the grey color..only the title. You need to set the tintcolor property on the navigation bar.
myController.navigationBar.tintColor