04-21-2012 09:55 AM
Hi all,
There are two way of close screen, they are onClose() and popScreen()? Both of them will go back to the previous screen stack, my question is : will popScreen() call onClose() as well?
# I tried to change the world, but I couldn't find the source code #
Solved! Go to Solution.
04-21-2012 06:55 PM
It is Screen.close() which closes the screen.
onClose() can call close(), after potentially asking the user whether to save changes.
I suggest you take the time to check - I would expect that popScreen() calls close() (but not onClose()).
04-22-2012 08:46 PM
My understanding is that popScreen will not call close() or onClose(). It will just pop the screen.
But as the previous poster said, this is easy to test.
04-24-2012 01:58 AM
# I tried to change the world, but I couldn't find the source code #
04-24-2012 02:03 AM
# I tried to change the world, but I couldn't find the source code #