UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self.view action:@selector(endEditing:)]; tap.cancelsTouchesInView = FALSE; tap.delegate = self; [self.view addGestureRecognizer:tap];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self.view action:@selector(endEditing:)]; tap.cancelsTouchesInView = FALSE; tap.delegate = self; [self.view addGestureRecognizer:tap];