diff options
Diffstat (limited to 'Juick/MessagesViewController.m')
-rw-r--r-- | Juick/MessagesViewController.m | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Juick/MessagesViewController.m b/Juick/MessagesViewController.m index fa53875..68c70cb 100644 --- a/Juick/MessagesViewController.m +++ b/Juick/MessagesViewController.m @@ -117,20 +117,22 @@ static NSString *CellIdentifier = @"MessageCell"; - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; - - [[NSNotificationCenter defaultCenter] addObserver:self - selector:@selector(contentSizeCategoryChanged:) + if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1) { + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(contentSizeCategoryChanged:) name:UIContentSizeCategoryDidChangeNotification - object:nil]; + object:nil]; + } } - (void)viewDidDisappear:(BOOL)animated { [super viewDidDisappear:animated]; - - [[NSNotificationCenter defaultCenter] removeObserver:self - name:UIContentSizeCategoryDidChangeNotification - object:nil]; + if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1) { + [[NSNotificationCenter defaultCenter] removeObserver:self + name:UIContentSizeCategoryDidChangeNotification + object:nil]; + } } - (void)didReceiveMemoryWarning |