Whilst you can set the initial selected tab programmatically like the other answers, to achieve the same in your storyboard without touching code you would perform the following:
- Select the Tab Bar Controller in the Storyboard Interface
- Show the Identity Inspector in the Utilities panel
- Add a new "User Defined Runtime Attribute"
- Set the Key Path to "selectedIndex"
- Set the Type to "Number"
- Set the Value to the index of the tab you wish to select (a value of 1 would select the second tab for example)
- Save the Storyboard, build and run the application
This should be what it looks like when you've achieved the above steps:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…