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

前端 未结 3 1688
借酒劲吻你
借酒劲吻你 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:15

    I didn't have to make a storyboard reference back from the 2nd storyboard to the first as Ryan laid out. For me, in my second storyboard I could Control-drag from a viewcontroller to its own exit, and the unwind segue that I had specified in a viewcontroller class consumed in the first storyboard appeared. So I just selected that to create a new exit segue with an identifier, and called performSegueWithIdentifier: on it in code. Worked fine.

提交回复
热议问题