swift 代码片段
- 设置导航栏颜色
UIApplication.sharedApplication().setStatusBarHidden(true,withAnimation: .None)
self.navigationController?.navigationBar.lt_setBackgroundColor(UIColor.blackColor())
self.navigationController?.navigationBar.tintColor = UIColor.whiteColor()
self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName:UIColor.whiteColor()]
- test