I'm trying to encode the executioner game, and I have problems with the denouement. I have several view controllers that ultimately lead to the same view in which the user plays the actual executioner. However, depending on the view controller, I want the game to be in different modes (i.e.Multiplayer, single-user, etc.). I'm trying to add a play button again, which turns off to the previous view controller, but I'm not sure how to relax when there are several ways a user could get to get to that view.
In other words, my kind of application goes:
A β B β C or
A β D β C, where C can (ideally) relax to D or B.
I was wondering what is the best way to implement this? Should I just embed all my view controllers in the navigation controllers? Or is there a way to present a specific view controller based on a specific condition? Thanks for any help!
Jared source share