如何使用这个新对象来定制iOS 13中的导航栏?我尝试在Objective-C中使用以下代码,但它没有正确地工作。仅当一个视图控制器被推送或弹出到导航堆栈时,它才显示我的标题文本属性。
UINavigationBarAppearance *appearance = [UINavigationBarAppearance new];
appearance.titleTextAttributes = @{NSFontAttributeName: font};
这个对象的文档在这里。 https://developer.apple.com/documentation/uikit/uinavigationbarappearance?language=objc
appearance
变量应用于导航栏。 - rmaddy