self.title sets navigationController and tabBarItem's title? Why?

后端 未结 4 1568
孤城傲影
孤城傲影 2020-11-30 19:15

I do this in a UIViewController for one of my tabs:

self.title = @\"Welcome\";

However, it\'s overwriting whatever I have for the tabBarIte

4条回答
  •  心在旅途
    2020-11-30 19:33

    //set nav item title
    self.navigationController.navigationBar.topItem.title = @"zurück";
    

    this did it for me :=) (nothing of the above worked)

提交回复
热议问题