From 1bd06eccdd00252b2c3168a66e55216131ee4093 Mon Sep 17 00:00:00 2001 From: Keith Harrison Date: Sun, 26 Apr 2015 12:12:56 +0100 Subject: [PATCH] Remove unused notification code --- AlertController/AlertController/ViewController.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/AlertController/AlertController/ViewController.m b/AlertController/AlertController/ViewController.m index c344b36..ca679f3 100644 --- a/AlertController/AlertController/ViewController.m +++ b/AlertController/AlertController/ViewController.m @@ -211,7 +211,7 @@ - (IBAction)showActionSheet:(UIButton *)sender } #pragma mark - -#pragma mark === UITextFieldTextDidChange Target Action === +#pragma mark === UITextField - UIControlEventEditingChanged === #pragma mark - - (void)alertTextFieldDidChange:(UITextField *)sender @@ -231,10 +231,6 @@ - (void)alertTextFieldDidChange:(UITextField *)sender - (void)didEnterBackground:(NSNotification *)notification { - [[NSNotificationCenter defaultCenter] removeObserver:self - name:UITextFieldTextDidChangeNotification - object:nil]; - [self.presentedViewController dismissViewControllerAnimated:NO completion:nil]; }