1//设置导航栏颜色2let mainColor = UIColor(red:0.92, green:0.25, blue:0.24, alpha:1)3self.navigationController?.navigationBar.barTintColor =mainColor4self.navigationController?.navigationBar.tintColor =UIColor.whiteColor()56//设置标题颜色7let navigationTitleAttribute : NSDictionary =NSDictionary(objectsAndKeys: UIColor.whiteColor(),NSForegroundColorAttributeName)8self.navigationController?.navigationBar.titleTextAttributes = navigationTitleAttribute