UIAlertViewDelegate and UIActionSheetDelegate method block implementation.