iOS Navigation的一些设置
作者:
ldclll | 来源:发表于
2016-11-03 14:11 被阅读48次 //将标题的字设置成白色
navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white]
//将默认返回键设置成白色
navigationBar.barStyle = .default
navigationBar.tintColor = UIColor.white
//将默认返回键的字设置成透明
UIBarButtonItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.clear], for: .normal)
UIBarButtonItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.clear], for: .highlighted)
本文标题:iOS Navigation的一些设置
本文链接:https://www.haomeiwen.com/subject/ntobuttx.html
网友评论