本文主要是介绍iOS 点空白处回收键盘,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
// 回收键盘 _number 和_phone 两个输入框- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
if (![_number isExclusiveTouch]) {
[_number resignFirstResponder];
}
if (![_phone isExclusiveTouch]) {
[_phone resignFirstResponder];
}
}
这篇关于iOS 点空白处回收键盘的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!