在 NavigationBar 控制器中自定义底部栏

Customize the Bottom Bar in NavigationBar Controller

我在 UITable 视图控制器中嵌入了导航控制器。 在导航控制器中,在模拟指标上,我将底部栏从推断更改为半透明黑色标签栏。

因此,在 UITable 视图控制器上,我在顶部有一个导航栏,在底部有一个点击栏。

我在 AppDelegate 中包含一种方法,如下所示:

    func customizeAppearance() {

    let tintColor = UIColor(red: 255/255.0, green: 255/255.0, blue: 255/255.0, alpha: 1.0)

    UINavigationBar.appearance().barTintColor = UIColor.redColor()
    UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
    UINavigationBar.appearance().tintColor = tintColor        
}

导航栏成功更改为我想要的。 如何自定义底部Bar的颜色。

我不想在我的 UITableView 中插入标签栏,因为这不是我想要的,因为当我尝试添加标签栏时,它只是将自己添加到 table 我不看。

终于我找到了方法: UIToolbar.appearance().barTintColor = UIColor.blackColor() UIToolbar.appearance().tintColor = tintColor