Monogame within an iOS app


I hope I can explain exactly what it is that I’m trying to do. In my head, it seems like something that should work easily and something that seems like it would be done often, but I am struggling to get it to work.

Basically, I have an iOS app built with Xamarin Studio. The app is comprised of a bunch of different UIViewControllers. In one View Controller, there is a button to start a new game. At this point, I want to fire up a Game object. This part I can get to work. I press the button and the game begins. The problem however is terminating the game and returning to my View Controller.

I tried a few different things, including Dispose(), EndRun() and Exit(). I can’t seem to get anything to work though. When I Dispose() the game, my AppDelegate throws an error saying that the Game object was used after being disposed.

Is it possible to end the game when I want to and send it back to the View Controller or a different View Controller?