swift设置导航栏item颜色和状态栏颜色

//swift设置导航栏item颜色和状态栏颜色

let dict:Dictionary =[NSForegroundColorAttributeName:UIColor.hrgb("333333")]

self.navigationController?.navigationBar.titleTextAttributes = dict

UIApplication.shared.setStatusBarStyle(UIStatusBarStyle.default,animated: true)

posted on 2017-04-07 17:17  MJ_Angel  阅读(1111)  评论(0编辑  收藏  举报

导航