resignFirstResponder for all textfields [duplicate]
try using this
[self.view endEditing:YES];
This will hide keyboard if its presented due to a subview of your self.view
try using this
[self.view endEditing:YES];
This will hide keyboard if its presented due to a subview of your self.view