diff options
author | Paul Gardiner <paul.gardiner@artifex.com> | 2013-11-26 12:28:43 +0000 |
---|---|---|
committer | Paul Gardiner <paul.gardiner@artifex.com> | 2013-11-27 10:54:51 +0000 |
commit | 08ca7372ab058bc283452515854a9f0210bd620e (patch) | |
tree | d2f94b76581d71daab8b2d8cd9ad632fb330008d /platform/ios/Classes | |
parent | 2c786be7bc6fd1378ebfde5583f2560ca460a017 (diff) | |
download | mupdf-08ca7372ab058bc283452515854a9f0210bd620e.tar.xz |
iOS: some fixes for iOS 7
Diffstat (limited to 'platform/ios/Classes')
-rw-r--r-- | platform/ios/Classes/MuAppDelegate.m | 2 | ||||
-rw-r--r-- | platform/ios/Classes/MuDocumentController.m | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/platform/ios/Classes/MuAppDelegate.m b/platform/ios/Classes/MuAppDelegate.m index aaf0cff9..966db19f 100644 --- a/platform/ios/Classes/MuAppDelegate.m +++ b/platform/ios/Classes/MuAppDelegate.m @@ -30,7 +30,7 @@ [navigator setDelegate: self]; window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; - [window setBackgroundColor: [UIColor scrollViewTexturedBackgroundColor]]; + [window setBackgroundColor: [UIColor grayColor]]; [window setRootViewController: navigator]; [window makeKeyAndVisible]; diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m index 9e867fb5..4415bf08 100644 --- a/platform/ios/Classes/MuDocumentController.m +++ b/platform/ios/Classes/MuDocumentController.m @@ -52,6 +52,10 @@ static void flattenOutline(NSMutableArray *titles, NSMutableArray *pages, fz_out if (!self) return nil; +#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 + if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]) + self.automaticallyAdjustsScrollViewInsets = NO; +#endif key = [filename retain]; docRef = [aDoc retain]; doc = docRef->doc; |