关闭keyboard

1, 
[[[UIApplication sharedApplication] keyWindow] endEditing:YES];
2,[TextField resignFirstResponder].

你可能感兴趣的:(关闭keyboard)