Rearranging Tab Bar Controller Order in StoryBoard

前端 未结 18 1554
鱼传尺愫
鱼传尺愫 2021-01-30 03:28

In my app iPhone app I have a Tab Bar Controller with 4 relationships to 4 different Table View Controllers. Is there a way to rearrange the order of the relationship in the Sto

相关标签:
18条回答
  • 2021-01-30 04:14

    In 4.5 save the storyboard after adding a Controller, switch to another file and then back to the Storyboard and the tab dragging should work again.

    0 讨论(0)
  • 2021-01-30 04:15

    I'm using XCode 5.1 for development of iOS 7.1 and I found the following approach works for rearranging the tabs in a Tab Bar Controller.

    To rearrange the tabs in a Tab Bar Controller, delete the segues from the Tab Bar Controller to your sub-view controllers. Then re-draw the segues in the order you want the tabs. To "re-draw" I mean you control drag from the Tab Bar Controller to the sub-view controller and select Relationship Segue (at bottom of list) => view controllers.

    0 讨论(0)
  • 2021-01-30 04:17

    As noted in comments, drag & drop doesn't currently work (Xcode 4.5) after adding a navigation controller. However, restarting Xcode after adding the controller seems to get drag & drop working again.

    0 讨论(0)
  • 2021-01-30 04:17

    Control + drag the item in TabBarController in storyboard and rearrange to the desired position.

    0 讨论(0)
  • 2021-01-30 04:21

    You can just re-arrange the order by dragging and dropping the icons in the tab bar controller

    0 讨论(0)
  • 2021-01-30 04:23

    If you open the storyboard as 'source code view' and then close it an open it as IB view it seems to fix the bug..

    0 讨论(0)
提交回复
热议问题