From 08ca7372ab058bc283452515854a9f0210bd620e Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Tue, 26 Nov 2013 12:28:43 +0000 Subject: iOS: some fixes for iOS 7 --- platform/ios/Classes/MuAppDelegate.m | 2 +- platform/ios/Classes/MuDocumentController.m | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'platform/ios/Classes') 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; -- cgit v1.2.3