iOS 15 navigationBar setTitleTextAttributes not work!

 [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:yhc_navTitleColor,NSFontAttributeName:[UIFont systemFontOfSize:15 weight:UIFontWeightRegular]}];

Answered by Frameworks Engineer in 681824022

What does "does not work" mean here?

Also we would highly recommend migrating all of your navigation bar, toolbar, and tab bar customization to the UIBarAppearance APIs introduced in iOS 13, as the new bar behaviors that you'll encounter in IOS 15 can only be customized via those APIs.

Accepted Answer

What does "does not work" mean here?

Also we would highly recommend migrating all of your navigation bar, toolbar, and tab bar customization to the UIBarAppearance APIs introduced in iOS 13, as the new bar behaviors that you'll encounter in IOS 15 can only be customized via those APIs.

I solved it.thanks!

Hi liujc, how did you solve this? I am having the same issue.

iOS 15 navigationBar setTitleTextAttributes not work!
 
 
Q