uinavigationbarappearance

barTintColor not applied when NavigationBar is Large Titles

青春壹個敷衍的年華 提交于 2021-02-07 09:58:01
问题 I'm updating an app that was compiled on Xcode 10 and running fine up through iOS 13. I wanted to make some changes so recompiled on Xcode 11 and now have a problem with the barTintColor. If 'Large Titles' is set to 'Always' my custom barTintColor is not applied -- I just get the default gray. If 'Large Titles' is set to 'Never', my custom barTintColor is applied as expected. If 'Large Titles' is set to 'Automatic', the NavBar is default gray when Large Titles are shown and my custom color

barTintColor not applied when NavigationBar is Large Titles

烈酒焚心 提交于 2021-02-07 09:56:54
问题 I'm updating an app that was compiled on Xcode 10 and running fine up through iOS 13. I wanted to make some changes so recompiled on Xcode 11 and now have a problem with the barTintColor. If 'Large Titles' is set to 'Always' my custom barTintColor is not applied -- I just get the default gray. If 'Large Titles' is set to 'Never', my custom barTintColor is applied as expected. If 'Large Titles' is set to 'Automatic', the NavBar is default gray when Large Titles are shown and my custom color

How to use UINavigationBarAppearance in iOS 13

天涯浪子 提交于 2020-04-18 06:51:16
问题 How do you use this new object to customize the navigation bar in iOS 13? I tried the following code in Objective-C but it's not working correctly. It only shows my title text attributes while a view controller is being pushed or popped on to the navigation stack. UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; appearance.titleTextAttributes = @{NSFontAttributeName: font}; Here is the documentation for this object. https://developer.apple.com/documentation/uikit

How to use UINavigationBarAppearance in iOS 13

最后都变了- 提交于 2020-04-18 06:51:08
问题 How do you use this new object to customize the navigation bar in iOS 13? I tried the following code in Objective-C but it's not working correctly. It only shows my title text attributes while a view controller is being pushed or popped on to the navigation stack. UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; appearance.titleTextAttributes = @{NSFontAttributeName: font}; Here is the documentation for this object. https://developer.apple.com/documentation/uikit