开发者

decouple tabbaritems from viewcontroller title

开发者 https://www.devze.com 2022-12-18 17:43 出处:网络
We are looking for a way to decouple the lower UITabBar from the titles of the current view controller.

We are looking for a way to decouple the lower UITabBar from the titles of the current view controller.

When the title of the view controller changes, we want the text in the tabbaritem to remain the same.

Is there way to achieve this other than h开发者_如何学编程aving to reset the value in each view?

Thanks in advance!


From this post I found the solution (had the same problem): specify the table view controller title before the tab bar item title. An example from my app:

routesTableViewController.title = @"Routes";
routesController.tabBarItem.title = @"Schedule";
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号