<pre name="code" class="objc">-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
if ([self.delegate respondsToSelector:@selector(touchViewTouchesBegan:)]) {
[self.textfield resignFirstResponder]
}
}
点击其他的视图 如 view 则可以回收textfield 弹出的键盘
iOS点击空白处回收键盘
最新推荐文章于 2016-03-22 11:47:18 发布