iOS change navigation bar title font and color

后端 未结 18 739
青春惊慌失措
青春惊慌失措 2020-12-04 08:40

So i have this code that should change the nav bar title font, but it doenst

    NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:[UIFon         


        
18条回答
  •  遥遥无期
    2020-12-04 08:56

    Here is an answer for your question:

    Move your code to below method because navigation bar title updated after view loaded. I tried adding above code in viewDidLoad doesn't work, it works fine in viewDidAppear method.

      -(void)viewDidAppear:(BOOL)animated{}
    

提交回复
热议问题