您的位置:首页 > 产品设计 > UI/UE

ios barTintColor backgroundColor tintColor UITextAttributeTextColor的区别

2016-06-03 14:58 489 查看
accepted
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


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: