How To Chanage Navigation bar Color in Swift Ios

=> This code changes the NavigationBar color 
 
navigationController.navigationBar.barTintColor = UIColor.greenColor()
 
=> Navigation Bar Text:
 navigationController.navigationBar.titleTextAttributes = 
 [UITextAttributeTextColor: UIColor.orangeColor()]
 
 
 => Tab Bar Color:--
 
tabBarController.tabBar.tintColor = UIColor.yellowColor() 
 

=> Change Bar Button Item:-

  UIBarButtonItem.appearance().setTitleTextAttributes 
 ([NSForegroundColorAttributeName: color, NSFontAttributeName: buttonFont], 
 forState: UIControlState.Normal)
 

Popular posts from this blog

How to Use pagination ScrollView in Swift

UISearchBar search text color , background color swift 3

How To Add Multiple Line in Lable in Swift Ios