0

I'm building an map app and have label with information of my route. I've set programmatically color of the label and navigation bar with the same hex. But while testing the app, I've noticed that they are different a bit. Can anybody tell me, what is wrong? screenshot

Main color is in Util class; nav bar appearance is set in app didFinishLaunchingWithOptions method; label color is set in viewWillAppear of my map VC

public static let mainColor = UIColor(fromHexCode: "#335E40") UINavigationBar.appearance().barTintColor = Util.mainColor infoLabel.backgroundColor = Util.mainColor

1 Answers1

0

Did you turn off the transition?

UINavigationBar.appearance().translucent = false
Godlike
  • 1,621
  • 2
  • 20
  • 33
  • btw do you know how to get rid if this line between tab bar and label? [link](http://s13.postimg.org/xyho9bd7r/6e_YUE7c_Hix_E.jpg) – Kolya Baidikov Jan 27 '16 at 13:28
  • @KolyaBaidikov you are welcome. No, sorry. I think you have to use a custom tab bar and do sth like this: http://stackoverflow.com/a/16334578/4906484 – Godlike Jan 27 '16 at 13:34