I need to design a game by levels in which it is only possible, from each level, going forward or back to the home. it is not necessary to go back to the previous level. That's the scenario:
MENU->LEVEL 1 -> LEVEL 2 -> ...... LEVEL 9 -> LEVEL 10
So I extended the UIViewController Class and I assigned it to 10 objects in the storyboard. When certain conditions (it doesn't matter which ones) occur, I need to pass to the following level, discarding the memory of the current level, which is not necessary anymore. What's the best way of doing it? Please answer asap and thanks