swift 导航栏
作者:
onebook_ | 来源:发表于
2019-10-07 20:26 被阅读0次 // 设置导航栏的背景颜色
self.navigationController?.navigationBar.barTintColor = UIColor.rgb(65, green: 158, blue: 255)
self.navigationController?.navigationBar.isTranslucent = false
// 导航栏标题字体颜色
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
// 导航栏按钮字体颜色
self.navigationController?.navigationBar.tintColor = UIColor.white
// 隐藏导航栏底部的线
self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
self.navigationController?.navigationBar.shadowImage = UIImage()
本文标题:swift 导航栏
本文链接:https://www.haomeiwen.com/subject/wmampctx.html
网友评论