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 | |
parent | 2c786be7bc6fd1378ebfde5583f2560ca460a017 (diff) | |
download | mupdf-08ca7372ab058bc283452515854a9f0210bd620e.tar.xz |
iOS: some fixes for iOS 7
-rw-r--r-- | platform/ios/Classes/MuAppDelegate.m | 2 | ||||
-rw-r--r-- | platform/ios/Classes/MuDocumentController.m | 4 | ||||
-rw-r--r-- | platform/ios/Info.plist | 4 | ||||
-rw-r--r-- | platform/ios/MuPDF.xcodeproj/project.pbxproj | 16 |
4 files changed, 24 insertions, 2 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; diff --git a/platform/ios/Info.plist b/platform/ios/Info.plist index e21b5dc5..cbbf4fa4 100644 --- a/platform/ios/Info.plist +++ b/platform/ios/Info.plist @@ -87,6 +87,8 @@ <array> <string>armv7</string> </array> + <key>UIStatusBarHidden</key> + <true/> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> @@ -101,6 +103,8 @@ <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> + <key>UIViewControllerBasedStatusBarAppearance</key> + <false/> <key>UTImportedTypeDeclarations</key> <array> <dict> diff --git a/platform/ios/MuPDF.xcodeproj/project.pbxproj b/platform/ios/MuPDF.xcodeproj/project.pbxproj index 1bbc8a0b..54b78264 100644 --- a/platform/ios/MuPDF.xcodeproj/project.pbxproj +++ b/platform/ios/MuPDF.xcodeproj/project.pbxproj @@ -331,8 +331,13 @@ isa = PBXProject; attributes = { CLASSPREFIX = Mu; - LastUpgradeCheck = 0460; + LastUpgradeCheck = 0500; ORGANIZATIONNAME = "Artifex Software, Inc"; + TargetAttributes = { + 968E1E3C1779A54F0050CEA3 = { + DevelopmentTeam = M2AA22CUFZ; + }; + }; }; buildConfigurationList = 968E1E381779A54F0050CEA3 /* Build configuration list for PBXProject "MuPDF" */; compatibilityVersion = "Xcode 3.2"; @@ -467,22 +472,28 @@ 968E1E581779A54F0050CEA3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; }; name = Debug; }; 968E1E591779A54F0050CEA3 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + IPHONEOS_DEPLOYMENT_TARGET = 6.1; }; name = Release; }; 968E1E5B1779A54F0050CEA3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_OPTIMIZATION_LEVEL = 0; INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 6.1; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; USER_HEADER_SEARCH_PATHS = ../../include; @@ -492,10 +503,13 @@ 968E1E5C1779A54F0050CEA3 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_OPTIMIZATION_LEVEL = s; INFOPLIST_FILE = "$(SRCROOT)/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 6.1; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; USER_HEADER_SEARCH_PATHS = ../../include; |