Unwind segue doesn't work in Swift 3 and iOS 10

前端 未结 1 780
予麋鹿
予麋鹿 2021-01-11 20:11

I\'m trying to test unwind segue in iOS 10 and Swift 3.

I made a simple app like this:

I add code for segue in TableViewController cl

相关标签:
1条回答
  • 2021-01-11 20:40

    As can be seen in the comments above the problem was this:

    I add code for segue in TableViewController class

    The unwind segue has to be in your "outer" ViewController, not the TableViewController.

    This article gives a very nice introduction to unwind segues.

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