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