标签: iphone keyboard
当用户在键盘启动时按下Home键时,如何关闭iPhone键盘?
答案 0 :(得分:4)
您可以尝试:
-(void)applicationDidEnterBackground:(UIApplication *)application { [yourtextfield resignFirstResponder]; }