Hide UIAlertView programmatically? August 29, 2023 by Tarik Call [theAlertView dismissWithClickedButtonIndex:0 animated:YES]; when you handle the return key.