Unwind Segue for UINavigationController

前端 未结 1 1908
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-06 09:37

I have a simple UINavigationController which pushes a UIViewController onto the stack via a custom segue. I then implemented an IBAction on the first UIViewController to perfor

相关标签:
1条回答
  • 2021-02-06 10:11

    I had the same problem and I finally found a solution: https://github.com/simonmaddox/CustomUnwindSegue

    He also had a problem with it not being called. Turns out that any view controller that is in a UINavigationController will not call the presenting view controller but the UINavigationController instead. This means you must subclass that UINavigationController and add that method there instead.

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