Setting the default tab when using storyboards

前端 未结 12 949
执笔经年
执笔经年 2020-12-12 16:27

Can anyone please tell me how to set the default tab when using storyboards in iOS. I can\'t seem to figure out how to accomplish this.

Thank you

12条回答
  •  难免孤独
    2020-12-12 16:43

    You can achieve this through Xcode 8 or later (just tested it and don't know if it's available before this version)

    Do the steps as @Joshua Finch said but:

    1. Select the bar item instead of the TabBar
    2. Got to "User Defined Runtime Attribute"
    3. Add new key
    4. Name it "selected"
    5. Set its type to boolean and choose true / or check the checkbox

提交回复
热议问题