Simple Title not showing up in UINavigationController

后端 未结 3 546
广开言路
广开言路 2021-01-05 11:10

I have looked at all of the similar/related questions, but none either a) are exactly my problem or 2) the solutions just don\'t work.

In my appDelegate.m I have in

3条回答
  •  一向
    一向 (楼主)
    2021-01-05 11:51

    UINavigationController automatically shows the title of the UIViewController subclass it is displaying. It does so by looking at the navigationItem.title property of that UIViewController or UIViewController subclass. Basically UINavigationController doesn't have a title.

提交回复
热议问题