Jump to a specific tab in a UITabBarController

淺唱寂寞╮ 提交于 2019-12-02 15:16:59

Was the title/question changed? I thought the question was about Xcode...

For what you're asking, try setting selectedIndex of your UITabBarController, like this:

self.tabBarController.selectedIndex = indexOfTab;

However don't overuse it, some automatic transitions between tabs can be considered as bad user experience.

Don't just stop with this shortcut - learn more! Here's an extensive list of Xcode 4 shortcuts: print the B&W version, pin it your wall, learn and enjoy the Xcode even more.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!