overridefunc viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
var nav =self.navigationController?.navigationBar
nav?.barStyle =UIBarStyle.Black
nav?.tintColor =UIColor.whiteColor()
nav?.titleTextAttributes = [NSForegroundColorAttributeName:UIColor.orangeColor()]
}
swift 中navigationBar颜色设置
最新推荐文章于 2025-07-11 12:58:40 发布