Search code examples
xcodestoryboardtabbartabbarcontroller

Connecting the first view with tabbar controller


I accidently deleted the connection from the tabbar controller to the first view (the view loaded when the application is loaded). I cannot find how to reconnect this first view. Can anyone help. Thanks in advance


Solution

  • This is as easy to set the Segue from one view controller to another.

    • Drag a segue from your master (tab bar view controller) to your sub view controller and set "viewcontrollers segue" segue.

    Refer link https://youtu.be/a8OJyUtcJZk which will show how you can achieve this.