Game Development Community

Quit(); doesn't completely quit on device

by Eyal Erez · in iTorque 2D · 01/12/2009 (4:10 pm) · 3 replies

When using quit(); on the device the program stops and quit but the last screen (in my case the mainMenuGui) stays on until I touch the iPhone screen again. making it look like the program hasn't quit.
When touching the screen again, it goes back to the iPhone home screen like it should.
Not a big deal in my opinion, but I'm worried how apple's reaction would be when I send them my game.
Any ideas anyone?

#1
01/12/2009 (4:39 pm)
Turns out this is actually a powerful feature.
Just make another simple gui with your company's logo and setContent to your gui just before you quit();
now when you press the quit button ,it doesn't look like a bug since your logo is loaded instead of the mainMenu.
Another click on the screen and you are back to the iPhone home.
#2
01/29/2009 (1:03 pm)
I read this before and have tried it, but on my device (iPod touch) it doesn't display the gui I did a canvas.setContent with, it just freezes and stops responding. If I run with Build-and-go, it gives a bad_excess error.


#3
01/29/2009 (1:42 pm)
strange. it does work for me on pc/mac/iPhone/iPod.
Does it work on your PC/Mac ? did you check the console.log ?