Browse files

Made the demo app universal to show that it also works properly on iPad.

  • Loading branch information...
1 parent bb2f43d commit bdbbbf50c3294845822e0203f70b79cb05e71c54 @Inferis Inferis committed Jan 4, 2012
View
4 ViewDeckExample.xcodeproj/project.pbxproj
@@ -292,7 +292,9 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ViewDeckExample/ViewDeckExample-Prefix.pch";
INFOPLIST_FILE = "ViewDeckExample/ViewDeckExample-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
WRAPPER_EXTENSION = app;
};
name = Debug;
@@ -303,7 +305,9 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "ViewDeckExample/ViewDeckExample-Prefix.pch";
INFOPLIST_FILE = "ViewDeckExample/ViewDeckExample-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.0;
PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
WRAPPER_EXTENSION = app;
};
name = Release;
View
9 ViewDeckExample/AppDelegate.m
@@ -21,7 +21,6 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
- // Override point for customization after application launch.
self.leftController = [[LeftViewController alloc] initWithNibName:@"LeftViewController" bundle:nil];
RightViewController* rightController = [[RightViewController alloc] initWithNibName:@"RightViewController" bundle:nil];
@@ -33,6 +32,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
rightViewController:rightController];
deckController.rightLedge = 100;
+ if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
+ }
+ else {
+
+ }
+
+
+
self.window.rootViewController = deckController;
[self.window makeKeyAndVisible];
return YES;
View
6 ViewDeckExample/ViewDeckExample-Info.plist
@@ -36,5 +36,11 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
</dict>
</plist>

0 comments on commit bdbbbf5

Please sign in to comment.