Jump to a specific tab in a UITabBarController

前端 未结 2 937
旧巷少年郎
旧巷少年郎 2021-01-29 16:33

I want to jump to third tab in tabcontroller. I searched in Google but found nothing helpful.

If anybody can help I will be grateful.

2条回答
  •  忘掉有多难
    2021-01-29 17:10

    You want to set the selectedIndex property of the tab controller

    http://developer.apple.com/library/ios/documentation/uikit/reference/UITabBarController_Class/Reference/Reference.html

提交回复
热议问题