Can an 'Unwind Segue' work between two storyboards connected by a storyboard reference?

前端 未结 3 1709
借酒劲吻你
借酒劲吻你 2020-12-09 04:49

In iOS 9, storyboards can be connected by a \'storyboard reference\' that links to a second storyboard by adding a storyboard reference and setting the \'referenced ID\' to

3条回答
  •  醉酒成梦
    2020-12-09 05:19

    Starting from your storyboard reference, create a new storyboard reference that will be a reference back to your "Main" storyboard. Make sure you set your Storyboard Identifier on your main as well.

    You will now have a "Main Scene" reference with all you Exits now available. You can now create unwind segues as you normally would. Ctrl-drag from your controller to the Exit marker on the Main Scene and you will be able to select the desired exit.

提交回复
热议问题