开发者

Detecting when 'Home' is pressed or app is resumed (Keyboard is covering View when it resumes)

开发者 https://www.devze.com 2023-03-12 04:27 出处:网络
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!

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?


Your application delegate is sent the applicationDidEnterBackground: message:

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


you can check with some notification and try this

0

精彩评论

暂无评论...
验证码 换一张
取 消