From f42d50f82738cb1e33277ea3e7b46a9f6e761c6e Mon Sep 17 00:00:00 2001 From: Charlie Dennnington Date: Fri, 7 Jun 2013 15:58:17 +0100 Subject: [PATCH] app open full screen on ipad and status bar is hidden --- IOSBoilerplate.xcodeproj/project.pbxproj | 26 +- IOSBoilerplate/IOSBoilerplate-Info.plist | 4 + .../iPad/en.lproj/MainWindow-iPad.xib | 274 ++++++++++++++++++ 3 files changed, 302 insertions(+), 2 deletions(-) create mode 100644 IOSBoilerplate/iPad/en.lproj/MainWindow-iPad.xib diff --git a/IOSBoilerplate.xcodeproj/project.pbxproj b/IOSBoilerplate.xcodeproj/project.pbxproj index f73c380..93b2627 100644 --- a/IOSBoilerplate.xcodeproj/project.pbxproj +++ b/IOSBoilerplate.xcodeproj/project.pbxproj @@ -73,6 +73,7 @@ 09E442D9141F9DD400AD2DAE /* SwipeableTableViewExample.m in Sources */ = {isa = PBXBuildFile; fileRef = 09E442D7141F9DD400AD2DAE /* SwipeableTableViewExample.m */; }; 09E442DA141F9DD400AD2DAE /* SwipeableTableViewExample.xib in Resources */ = {isa = PBXBuildFile; fileRef = 09E442D8141F9DD400AD2DAE /* SwipeableTableViewExample.xib */; }; 09E442DD141F9E3600AD2DAE /* SwipeableCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 09E442DC141F9E3600AD2DAE /* SwipeableCell.m */; }; + D573CBDA17622C0D008DF50E /* MainWindow-iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = D573CBD817622C0D008DF50E /* MainWindow-iPad.xib */; }; D8EA24C4145BA49100EB08B3 /* BrowserViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D8EA24C0145BA49100EB08B3 /* BrowserViewController.m */; }; D8EA24C5145BA49100EB08B3 /* BrowserViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = D8EA24C1145BA49100EB08B3 /* BrowserViewController.xib */; }; D8EA24C6145BA49100EB08B3 /* MyApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = D8EA24C3145BA49100EB08B3 /* MyApplication.m */; }; @@ -201,6 +202,7 @@ 09E442DB141F9E3600AD2DAE /* SwipeableCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SwipeableCell.h; sourceTree = ""; }; 09E442DC141F9E3600AD2DAE /* SwipeableCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SwipeableCell.m; sourceTree = ""; }; C37BC8E3144C340600423D44 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; + D573CBD917622C0D008DF50E /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = "iPad/en.lproj/MainWindow-iPad.xib"; sourceTree = ""; }; D8EA24BF145BA49100EB08B3 /* BrowserViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BrowserViewController.h; sourceTree = ""; }; D8EA24C0145BA49100EB08B3 /* BrowserViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BrowserViewController.m; sourceTree = ""; }; D8EA24C1145BA49100EB08B3 /* BrowserViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = BrowserViewController.xib; sourceTree = ""; }; @@ -322,6 +324,7 @@ 09885E9A1418F2E600CCE17A /* IOSBoilerplate */ = { isa = PBXGroup; children = ( + D573CBD717622C0D008DF50E /* iPad */, 093EC375145B0DE90010CDBB /* AFNetworking */, 092D3D29145AE52F002F5F6C /* AFURLCache */, D8EA24BD145BA45C00EB08B3 /* BrowserViewController */, @@ -474,6 +477,14 @@ name = Images; sourceTree = ""; }; + D573CBD717622C0D008DF50E /* iPad */ = { + isa = PBXGroup; + children = ( + D573CBD817622C0D008DF50E /* MainWindow-iPad.xib */, + ); + name = iPad; + sourceTree = ""; + }; D8EA24BD145BA45C00EB08B3 /* BrowserViewController */ = { isa = PBXGroup; children = ( @@ -591,6 +602,7 @@ D8EA24CE145BA4AC00EB08B3 /* right.png in Resources */, D8EA24CF145BA4AC00EB08B3 /* right@2x.png in Resources */, D8EA24D4145BA4BC00EB08B3 /* BrowserSampleViewController.xib in Resources */, + D573CBDA17622C0D008DF50E /* MainWindow-iPad.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -717,6 +729,14 @@ name = InfoPlist.strings; sourceTree = ""; }; + D573CBD817622C0D008DF50E /* MainWindow-iPad.xib */ = { + isa = PBXVariantGroup; + children = ( + D573CBD917622C0D008DF50E /* en */, + ); + name = "MainWindow-iPad.xib"; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -773,9 +793,10 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "IOSBoilerplate/IOSBoilerplate-Prefix.pch"; INFOPLIST_FILE = "IOSBoilerplate/IOSBoilerplate-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 4.0; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; PRODUCT_NAME = "$(TARGET_NAME)"; "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; + TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; }; name = Debug; @@ -786,8 +807,9 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "IOSBoilerplate/IOSBoilerplate-Prefix.pch"; INFOPLIST_FILE = "IOSBoilerplate/IOSBoilerplate-Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 4.0; + IPHONEOS_DEPLOYMENT_TARGET = 5.1; PRODUCT_NAME = "$(TARGET_NAME)"; + TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; }; name = Release; diff --git a/IOSBoilerplate/IOSBoilerplate-Info.plist b/IOSBoilerplate/IOSBoilerplate-Info.plist index 2beb09c..ce8301f 100644 --- a/IOSBoilerplate/IOSBoilerplate-Info.plist +++ b/IOSBoilerplate/IOSBoilerplate-Info.plist @@ -28,6 +28,10 @@ NSMainNibFile MainWindow + NSMainNibFile~ipad + MainWindow-iPad + UIStatusBarHidden + UISupportedInterfaceOrientations UIInterfaceOrientationPortrait diff --git a/IOSBoilerplate/iPad/en.lproj/MainWindow-iPad.xib b/IOSBoilerplate/iPad/en.lproj/MainWindow-iPad.xib new file mode 100644 index 0000000..1a581c2 --- /dev/null +++ b/IOSBoilerplate/iPad/en.lproj/MainWindow-iPad.xib @@ -0,0 +1,274 @@ + + + + 1024 + 11G63b + 2549 + 1138.51 + 569.00 + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + 1498 + + + YES + IBProxyObject + IBUICustomObject + IBUINavigationBar + IBUINavigationController + IBUINavigationItem + IBUIViewController + IBUIWindow + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + PluginDependencyRecalculationVersion + + + + YES + + IBFilesOwner + IBIPadFramework + + + IBFirstResponder + IBIPadFramework + + + IBIPadFramework + + + + 1316 + + {768, 1024} + + 1 + MSAxIDEAA + + NO + NO + + 2 + + IBIPadFramework + YES + + + + + 1 + 1 + + IBIPadFramework + NO + + + 256 + {0, 0} + NO + YES + YES + IBIPadFramework + + + YES + + + IBIPadFramework + + + RootViewController + + + 1 + 1 + + IBIPadFramework + NO + + + + + + + YES + + + delegate + + + + 4 + + + + window + + + + 5 + + + + navigationController + + + + 15 + + + + + YES + + 0 + + YES + + + + + + 2 + + + YES + + + + + -1 + + + File's Owner + + + 3 + + + + + -2 + + + + + 9 + + + YES + + + + + + + 11 + + + + + 13 + + + YES + + + + + + 14 + + + + + + + YES + + YES + -1.CustomClassName + -1.IBPluginDependency + -2.CustomClassName + -2.IBPluginDependency + 11.IBPluginDependency + 13.CustomClassName + 13.IBLastUsedUIStatusBarStylesToTargetRuntimesMap + 13.IBPluginDependency + 14.IBPluginDependency + 2.IBAttributePlaceholdersKey + 2.IBLastUsedUIStatusBarStylesToTargetRuntimesMap + 2.IBPluginDependency + 3.CustomClassName + 3.IBPluginDependency + 9.IBLastUsedUIStatusBarStylesToTargetRuntimesMap + 9.IBPluginDependency + + + YES + UIApplication + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + UIResponder + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + RootViewController + + IBCocoaTouchFramework + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + YES + + + + + IBCocoaTouchFramework + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + IOSBoilerplateAppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + IBCocoaTouchFramework + + + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + + + + + YES + + + + + 16 + + + 0 + IBIPadFramework + + com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS + + + + com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 + + + YES + 3 + 1498 + +