所以我在Xcode中使用本地“更多”功能选项卡栏。我已经设法以编程方式导航标题颜色的导航栏&。更多选项卡,行图像色调(Xcode 9 + Swift 4)
//sets the font color
UINavigationBar.appearance().titleTextAttributes = [NSAttributedStringKey.foregroundColor.rawValue: UIColor.white]
//sets the tint color, which dictates the button color
UINavigationBar.appearance().tintColor = UIColor.white
//sets the Bar tint color
UINavigationBar.appearance().barTintColor = UIColor(red: 0/255, green: 175/255, blue: 65/255, alpha: 1.0)
但有没有办法改变这些蓝色图标(参考图像下面)的色调?我上传的图片是绿色的,但已被着色&我无法找到设置。有谁知道如何改变这个?
你想改变的TabBar或导航栏的颜色? –
@saroshmirza我想改变表格视图和“编辑”功能中单元格左边的蓝色图像/图标的色调。检查在帖子底部的图像链接,以供参考:) –
@JamesRhymer蓝色显示的项目是图像或按钮? –