开发者

decouple tabbaritems from viewcontroller title

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜