标签:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
方法1 [self.view endEditing:YES];
2 [[UIApplication sharedApplication]sendAction:@selector(resignFirstResponder) to:nil from:nil forEvent:nil];
3 [[[UIApplication sharedApplication]keyWindow]endEditing:YES];
}
标签:
原文地址:http://www.cnblogs.com/xuqf2iOS/p/4676723.html