UIBarStyleBlack vs tintColor黑色 [英] UIBarStyleBlack vs tintColor black
问题描述
将 UINavigationBar
的 tintColor
属性设置为 [UIColor blackColor ]
并在不透明导航栏上将 barStyle
设置为 UIBarStyleBlack
? $ b
What is the difference between setting the tintColor
property of UINavigationBar
to [UIColor blackColor]
and setting barStyle
to UIBarStyleBlack
on opaque navigation bar?
推荐答案
有一些细微的差别。例如,在iPad上,您将获得一种具有浅色的无光泽样式,但是带有 barStyle
的光泽样式。
There are a few subtle differences. For example, on iPad, you get a matte style with the tint color, but a glossy one with the barStyle
.
此外,边界 UIBarButtonItem
的颜色略有不同;与黑色 barStyle
,它们是灰色的,这使得更容易区分更暗的突出显示状态,而使用黑色色调,按钮看起来几乎相同的正常和突出显示状态。
Also, the color of bordered UIBarButtonItem
s is slightly different; with the black barStyle
, they are gray, which makes it easier to distinguish the darker highlighted state, while with a black tint color, the buttons look almost identical in normal and highlighted state.
我认为 UIBarButtonItem
与'Done'风格看起来不同,但我不确定。
I think UIBarButtonItem
s with 'Done' style also look different, but I'm not sure about that.
这篇关于UIBarStyleBlack vs tintColor黑色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!