//點(diǎn)擊空白鍵盤失去響應(yīng)
self.view.userInteractionEnabled = YES;
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(fingerTapped:)];
[self.view addGestureRecognizer:singleTap];
#pragma mark 鍵盤失去響應(yīng)
-(void)fingerTapped:(UITapGestureRecognizer *)gestureRecognizer
{
self.view.userInteractionEnabled = YES;
[self.view endEditing:YES];
}