Is it possible to change the grey border-bottom color of the UINavigationBar in iOS7?
I already tried to remove to border, but this is not working:
[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
Thanks!
Is it possible to change the grey border-bottom color of the UINavigationBar in iOS7?
I already tried to remove to border, but this is not working:
[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
Thanks!
I wrote an extension based on the other answers for easier usage in Swift:
You can use this extension with calling the method in a context like that:
I found that pretty useful as I had to deal with that colored-border-problem.
budidino solutions works very well. Here it is for Swift:
Here is a category to change bottom color with height:
Objective C:
UINavigationBar+Helper.h
UINavigationBar+Helper.m
Swift: