UINavigationBar title

后端 未结 3 1549
傲寒
傲寒 2021-01-15 01:36

I am trying to use a UILabel to replace the title at the UINavigationBar, the code is as follows:

UINavigationBar *bar = [self.navigationController navigatio         


        
3条回答
  •  梦毁少年i
    2021-01-15 02:11

    Use self.navigationItem.titleView = nav_title; instead of adding your label as a subview.

提交回复
热议问题