Question

In my iPhone app, if the user presses the Home button while the keyboard is up, then returns to the app, the keyboard is still up but my view behind is hidden behind it!

I have some code that normally would rise and lower the view as necessary, but I can't see how to call it in this situation. How can I either detect when Home has been pressed so I can lower the keyboard, or detect when the app has been resumed so that I can rise my view?

Was it helpful?

Solution

Your application delegate is sent the applicationDidEnterBackground: message:

You should perform any tasks relating to adjusting your user interface before this method exits

OTHER TIPS

you can check with some notification and try this

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top