UIAlertView and UIActionSheet that dismiss automatically when app switches into the background.