- Home /
iPhone Home button
How do I detect user has pressed iPhone "Home" button and wants to trigger some functions? "Home" button is the round button that pause app and exit to home screen.
Answer by SilverTabby · Sep 08, 2011 at 03:13 AM
I believe you can use the function OnApplicationQuit to run some cleanup/save operations when the user exits the program. Detecting the home button is not possible, but detecting the desire to quit is.
WARNING: you CANNOT stop the user from quitting after the button is pressed. Also, I do not develop for the iOS platform, so take everything I saw about the iPhone with a grain of salt.
Your answer
Follow this Question
Related Questions
On iOS, how do I fade out music when the user presses the home button? 1 Answer
Text is too small while displaying in device 1 Answer
How to make Iphone Menu-Unity 2 Answers
Touch GUI texture to toogle animation 0 Answers
DrawTexture GUI iPhone 1 Answer