Here are the difference between above :
barTintColor : The tint color to apply to the navigation bar background.
backgroundColor : change the background color of navigationBar (直接设置backgroundColor 颜色会不正常,要改变navigation bar background 请使用barTintColor)
tintColor : The tint color to apply to the navigation items and bar button items.
UITextAttributeTextColor : Key to the text color in a text attributes dictionary.The corresponding value is an instance of UIColor. Available in iOS 5.0 and later.Deprecated in iOS 7.0.
It’s an easy fix
. Just change UITextAttributeTextColor to NSForegroundColorAttributeName