iPhone resume after pressing home button

Is there any way to set game time scale to 0 when home button is pressed and showing a resume screen when application is called back from background?

In documentation there is a sentences about Application.CancelQuit : "IMPORTANT: This function has no effect on iPhone. Application can not prevent termination under iPhone OS".

Is there any way?

1 Answer

1

Use OnApplicationPause. You don't really quit apps on iOS; the OS quits them when needed (unless you use exit on suspend, but generally you shouldn't).