rishi
rishi

Reputation: 11839

How to change the color UINavigation bar's separator line

I am getting a separator line in UINavigation bar, how can I remove this?

enter image description here

Any help will be appreciated. Thanks. Updated - Attached full screen screen-shot. enter image description here

Upvotes: 1

Views: 1770

Answers (1)

Vadim Yelagin
Vadim Yelagin

Reputation: 3262

In case you're targeting for iOS 5 and newer, you can set an arbitrary background image for UINavigationBar like this

    [navBar setBackgroundImage:[UIImage imageNamed:@"navBarBg"] forBarMetrics:UIBarMetricsDefault];

If you need to support iOS 4, try subclassing UINavigationBar and overriding drawRect: method.

Upvotes: 1

Related Questions