diff options
author | Joseph Heenan <joseph@emobix.co.uk> | 2014-10-02 19:52:46 +0200 |
---|---|---|
committer | Joseph Heenan <joseph@emobix.co.uk> | 2014-10-04 08:11:35 -0500 |
commit | 58653cd174e2daa00896f042bfec3e33a0effff2 (patch) | |
tree | 0654c3578c67a0ab470e2714fb683fead41a11a3 /platform/ios/Classes | |
parent | a58af9fc29f9d8f86f932d0bdd72ead9217637b7 (diff) | |
download | mupdf-58653cd174e2daa00896f042bfec3e33a0effff2.tar.xz |
iOS: Add missing [super viewWillAppear/Disappear] calls
Spotted by xcode6 analyser
Diffstat (limited to 'platform/ios/Classes')
-rw-r--r-- | platform/ios/Classes/MuDocumentController.m | 3 | ||||
-rw-r--r-- | platform/ios/Classes/MuLibraryController.m | 2 |
2 files changed, 5 insertions, 0 deletions
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; |