Changing navigation title programmatically

后端 未结 14 2231
长情又很酷
长情又很酷 2020-11-28 19:34

I have a navigation bar with a title. When I double click the text to rename it, it actually says it\'s a navigation item, so it might be that.

I\'m trying to change

14条回答
  •  半阙折子戏
    2020-11-28 19:41

    If you have a NavigationController embedded inside of a TabBarController see below:

    super.tabBarController?.title = "foobar"
    

    You can debug issues like this with debugger scripts. Try Chisel's pvc command to print every visible / hidden view on the hierarchy.

提交回复
热议问题