Hide keyboard in applicationDidEnterBackground: - screenshot problem
问题 When the home button gets pressed I want to hide the keyboard and restore my view to a sane state, so that when the app is started/foregrounded again, there is no textfield selected and the keyboard is hidden. My app delegate has this implementation of the method: - (void)applicationDidEnterBackground:(UIApplication *)application { [tabBarController.view endEditing:YES]; } The keyboard does indeed get removed, but what I don't get is this: Apple's docs say that a snapshot of the app is taken