1 当按住屏幕上的人一点时键盘收回
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *t = [touches anyObject] ;
if(![t.view isMemberOfClass:[UITextField class]])
{
[self.lineEdit resignFirstResponder] ;
}
}
- (IBAction)huishou:(id)sender {
[self.textView resignFirstResponder];
[self.textFiled resignFirstResponder];
}