From 58653cd174e2daa00896f042bfec3e33a0effff2 Mon Sep 17 00:00:00 2001 From: Joseph Heenan Date: Thu, 2 Oct 2014 19:52:46 +0200 Subject: iOS: Add missing [super viewWillAppear/Disappear] calls Spotted by xcode6 analyser --- platform/ios/Classes/MuDocumentController.m | 3 +++ platform/ios/Classes/MuLibraryController.m | 2 ++ 2 files changed, 5 insertions(+) (limited to 'platform/ios/Classes') diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m index 43b64be8..0fdf8d98 100644 --- a/platform/ios/Classes/MuDocumentController.m +++ b/platform/ios/Classes/MuDocumentController.m @@ -352,6 +352,7 @@ static void saveDoc(char *current_path, fz_document *doc) - (void) viewWillAppear: (BOOL)animated { + [super viewWillAppear:animated]; [self setTitle: [key lastPathComponent]]; [slider setValue: current]; @@ -408,11 +409,13 @@ static void saveDoc(char *current_path, fz_document *doc) - (void) viewDidAppear: (BOOL)animated { + [super viewDidAppear:animated]; [self scrollViewDidScroll: canvas]; } - (void) viewWillDisappear: (BOOL)animated { + [super viewWillDisappear:animated]; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) [slider removeFromSuperview]; diff --git a/platform/ios/Classes/MuLibraryController.m b/platform/ios/Classes/MuLibraryController.m index 33907a63..2e3c5d2e 100644 --- a/platform/ios/Classes/MuLibraryController.m +++ b/platform/ios/Classes/MuLibraryController.m @@ -25,6 +25,7 @@ static void showAlert(NSString *msg, NSString *filename) - (void) viewWillAppear: (BOOL)animated { + [super viewWillAppear:animated]; [self setTitle: @"PDF, XPS and CBZ Documents"]; [self reload]; printf("library viewWillAppear (starting reload timer)\n"); @@ -36,6 +37,7 @@ static void showAlert(NSString *msg, NSString *filename) - (void) viewWillDisappear: (BOOL)animated { + [super viewWillDisappear:animated]; printf("library viewWillDisappear (stopping reload timer)\n"); [timer invalidate]; timer = nil; -- cgit v1.2.3