Are you able to choose the starting tab for a TabBarController?
Is 开发者_运维问答there a method for choosing the starting tab for a TabBarController
?
Yes. In a view controller:
self.tabBarController.selectedIndex = n;
You can also set selectedViewController
, if that is easier for you.
精彩评论