아미(아름다운미소)

iOS] Swift navigation bar 색상 변경 본문

랭귀지/SWIFT

iOS] Swift navigation bar 색상 변경

유키공 2018. 6. 12. 11:46

Changing navigation bar color in Swift

- Navigation Bar
navigationController?.navigationBar.barTintColor = UIColor.green

- Navigation Bar Text
navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.orange]

- Tab Bar
tabBarController?.tabBar.barTintColor = UIColor.brown

- Tab Bar Text
tabBarController?.tabBar.tintColor = UIColor.yellow


Comments