How to change Navigation Bar color in iOS 7?

The behavior of tintColor for bars has changed in iOS 7.0. It no longer affects the bar’s background. From the documentation: barTintColor Class Reference The tint color to apply to the navigation bar background. @property(nonatomic, retain) UIColor *barTintColor Discussion This color is made translucent by default unless you set the translucent property to NO. Availability … Read more

Creating a left-arrow button (like UINavigationBar’s “back” style) on a UIToolbar

I used the following psd that I derived from http://www.teehanlax.com/blog/?p=447 http://www.chrisandtennille.com/pictures/backbutton.psd I then just created a custom UIView that I use in the customView property of the toolbar item. Works well for me. Edit: As pointed out by PrairieHippo, maralbjo found that using the following, simple code did the trick (requires custom image in bundle) … Read more

Tab bar controller inside a navigation controller, or sharing a navigation root view

The two previous answers got it right – I don’t use UITabBarController in Tweetie. It’s pretty easy to write a custom XXTabBarController (plain subclass of UIViewController) that is happy to get pushed onto a nav controller stack, but still lives by the “view controller” philosophy. Each “tab” on the account-specific view (Tweets/Replies/Messages) is its own … Read more

How to hide UINavigationBar 1px bottom line

For iOS 13: Use the .shadowColor property If this property is nil or contains the clear color, the bar displays no shadow For instance: let navigationBar = navigationController?.navigationBar let navigationBarAppearance = UINavigationBarAppearance() navigationBarAppearance.shadowColor = .clear navigationBar?.scrollEdgeAppearance = navigationBarAppearance For iOS 12 and below: To do this, you should set a custom shadow image. But for … Read more