(Swift) Unwind segue when multiple view controllers lead to same view?

前端 未结 3 1277
清酒与你
清酒与你 2020-12-28 09:07

I am trying to code a hangman game and am having trouble with unwind segues. I have multiple view controllers that all ultimately lead to the same view, where the user plays

3条回答
  •  滥情空心
    2020-12-28 09:11

    I would simply call in code popViewController:animated to go to the presenting controller if you pushed it on the navigation stack, or dismissViewController:animated if it was presented modally.

提交回复
热议问题