UIColor.blackColor() 比标签栏上的黑色略浅
UIColor.blackColor() somewhat less than black on Tab Bar
我将我的标签栏设置为黑色。只有它使它变成深灰色,而不是黑色。见附图。有什么想法吗?
self.tabBarController?.tabBar.translucent = false
try above line
标签栏由于半透明而呈灰色。 This is the default:
If the tab bar does not have a custom background image, the default value is YES
.
将其 translucent
属性 设置为 false
以解决此问题并获得 100% 黑色标签栏。
我将我的标签栏设置为黑色。只有它使它变成深灰色,而不是黑色。见附图。有什么想法吗?
self.tabBarController?.tabBar.translucent = false
try above line
标签栏由于半透明而呈灰色。 This is the default:
If the tab bar does not have a custom background image, the default value is
YES
.
将其 translucent
属性 设置为 false
以解决此问题并获得 100% 黑色标签栏。