2019. 2. 11. 10:54ㆍProgramming/Swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
UINavigationBar.appearance().barTintColor = UIColor.white//.init(red: 23.0/255, green: 197.0/255, blue: 157.0/255, alpha: 1.0)
// To change colour of tappable items.
UINavigationBar.appearance().tintColor = .black
// To apply textAttributes to title i.e. colour, font etc.
UINavigationBar.appearance().titleTextAttributes = [.foregroundColor : UIColor.black, .font : UIFont.init(name: "AvenirNext-DemiBold", size: 22.0)!]
// To control navigation bar's translucency.
UINavigationBar.appearance().isTranslucent = false
return true
}
'Programming > Swift' 카테고리의 다른 글
[Swift] UserDefaults.standard int형식으로 불러오기 (0) | 2019.02.18 |
---|---|
[Swift] UILabel 에 글자별로 크기,색깔 변경 (0) | 2019.02.12 |
[Swift] navigation bar 구분선 제거 (0) | 2019.02.11 |
[Swift] 이미지가 보여지지 않을 경우 - Color Space (0) | 2018.09.12 |
[swift] 키보드가 활성화될 때 view를 올려라. (0) | 2018.04.03 |