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!
Picture 1
you can use Reveal to see the border color is the UIImageView's backgroundColor. so directly modifying the imageView's backgroundColor or hide it.
the code: i write in @interface QdtTabBarController : UITabBarController
Picture 2
Here is another way:
I solved this problem with the use of autolayouts. The solution works on different screen sizes and with orientation change.
I'm using RubyMotion with the RedPotion gem, which includes a
StandardAppearance
class. This is what I did!Put this line at the top of your
app_delegate.rb
, just before theon_load
method:Then, in your
application_stylesheet.rb
, put this as the last line in theapplication_setup
method:And then this is my
StandardAppearance
class:If you like simple and hacky solutions like I do, create a view that covers the default border:
Here's the method for creating image with clear color:
Here's it's usage for removing annoying bottom line: