Permalink
Browse files

- blue view with rotation

  • Loading branch information...
smistry-toushay committed Dec 4, 2013
1 parent e7940c0 commit 24ea37c52872993d75ba3ae0e04f453692b4bf4e
@@ -13,8 +13,6 @@
AF44CF25184FB9CF00EB41B0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = AF44CF23184FB9CF00EB41B0 /* InfoPlist.strings */; };
AF44CF27184FB9CF00EB41B0 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = AF44CF26184FB9CF00EB41B0 /* main.m */; };
AF44CF2B184FB9CF00EB41B0 /* ARAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = AF44CF2A184FB9CF00EB41B0 /* ARAppDelegate.m */; };
- AF44CF2E184FB9CF00EB41B0 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AF44CF2C184FB9CF00EB41B0 /* Main_iPhone.storyboard */; };
- AF44CF31184FB9CF00EB41B0 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AF44CF2F184FB9CF00EB41B0 /* Main_iPad.storyboard */; };
AF44CF34184FB9CF00EB41B0 /* ARViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AF44CF33184FB9CF00EB41B0 /* ARViewController.m */; };
AF44CF36184FB9CF00EB41B0 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AF44CF35184FB9CF00EB41B0 /* Images.xcassets */; };
AF44CF3D184FB9CF00EB41B0 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF44CF3C184FB9CF00EB41B0 /* XCTest.framework */; };
@@ -45,8 +43,6 @@
AF44CF28184FB9CF00EB41B0 /* ApportableRotation-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ApportableRotation-Prefix.pch"; sourceTree = "<group>"; };
AF44CF29184FB9CF00EB41B0 /* ARAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ARAppDelegate.h; sourceTree = "<group>"; };
AF44CF2A184FB9CF00EB41B0 /* ARAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ARAppDelegate.m; sourceTree = "<group>"; };
- AF44CF2D184FB9CF00EB41B0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = "<group>"; };
- AF44CF30184FB9CF00EB41B0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = "<group>"; };
AF44CF32184FB9CF00EB41B0 /* ARViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ARViewController.h; sourceTree = "<group>"; };
AF44CF33184FB9CF00EB41B0 /* ARViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ARViewController.m; sourceTree = "<group>"; };
AF44CF35184FB9CF00EB41B0 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
@@ -116,8 +112,6 @@
children = (
AF44CF29184FB9CF00EB41B0 /* ARAppDelegate.h */,
AF44CF2A184FB9CF00EB41B0 /* ARAppDelegate.m */,
- AF44CF2C184FB9CF00EB41B0 /* Main_iPhone.storyboard */,
- AF44CF2F184FB9CF00EB41B0 /* Main_iPad.storyboard */,
AF44CF32184FB9CF00EB41B0 /* ARViewController.h */,
AF44CF33184FB9CF00EB41B0 /* ARViewController.m */,
AF44CF35184FB9CF00EB41B0 /* Images.xcassets */,
@@ -232,9 +226,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- AF44CF31184FB9CF00EB41B0 /* Main_iPad.storyboard in Resources */,
AF44CF36184FB9CF00EB41B0 /* Images.xcassets in Resources */,
- AF44CF2E184FB9CF00EB41B0 /* Main_iPhone.storyboard in Resources */,
AF44CF25184FB9CF00EB41B0 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -287,22 +279,6 @@
name = InfoPlist.strings;
sourceTree = "<group>";
};
- AF44CF2C184FB9CF00EB41B0 /* Main_iPhone.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- AF44CF2D184FB9CF00EB41B0 /* Base */,
- );
- name = Main_iPhone.storyboard;
- sourceTree = "<group>";
- };
- AF44CF2F184FB9CF00EB41B0 /* Main_iPad.storyboard */ = {
- isa = PBXVariantGroup;
- children = (
- AF44CF30184FB9CF00EB41B0 /* Base */,
- );
- name = Main_iPad.storyboard;
- sourceTree = "<group>";
- };
AF44CF45184FB9CF00EB41B0 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
@@ -475,6 +451,7 @@
AF44CF4E184FB9CF00EB41B0 /* Release */,
);
defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
};
AF44CF4F184FB9CF00EB41B0 /* Build configuration list for PBXNativeTarget "ApportableRotationTests" */ = {
isa = XCConfigurationList;
@@ -483,6 +460,7 @@
AF44CF51184FB9CF00EB41B0 /* Release */,
);
defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
@@ -11,5 +11,6 @@
@interface ARAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
+@property (strong, nonatomic) UINavigationController *navigationController;
@end
@@ -6,41 +6,26 @@
// Copyright (c) 2013 Sandeep Mistry. All rights reserved.
//
+#import "ARViewController.h"
+
#import "ARAppDelegate.h"
@implementation ARAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
- // Override point for customization after application launch.
+ self.window = [[UIWindow alloc] init];
+
+ self.navigationController = [[UINavigationController alloc] init];
+ self.navigationController.navigationBarHidden = YES;
+
+ [self.navigationController pushViewController:[[ARViewController alloc] init] animated:YES];
+
+ self.window.rootViewController = self.navigationController;
+
+ [self.window makeKeyAndVisible];
+
return YES;
}
-
-- (void)applicationWillResignActive:(UIApplication *)application
-{
- // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
- // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
-}
-
-- (void)applicationDidEnterBackground:(UIApplication *)application
-{
- // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
- // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
-}
-
-- (void)applicationWillEnterForeground:(UIApplication *)application
-{
- // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
-}
-
-- (void)applicationDidBecomeActive:(UIApplication *)application
-{
- // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
-}
-
-- (void)applicationWillTerminate:(UIApplication *)application
-{
- // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
-}
@end
@@ -14,16 +14,13 @@ @interface ARViewController ()
@implementation ARViewController
-- (void)viewDidLoad
+- (void)loadView
{
- [super viewDidLoad];
- // Do any additional setup after loading the view, typically from a nib.
-}
-
-- (void)didReceiveMemoryWarning
-{
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
+ self.view = [[UIView alloc] init];
+ self.view.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:1.0 alpha:1.0];
+ self.view.frame = CGRectMake(0, 0, 320, 480);
+ self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
+ self.view.autoresizesSubviews = YES;
}
@end
@@ -24,10 +24,6 @@
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
- <key>UIMainStoryboardFile</key>
- <string>Main_iPhone</string>
- <key>UIMainStoryboardFile~ipad</key>
- <string>Main_iPad</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="BYZ-38-t0r">
- <dependencies>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
- </dependencies>
- <scenes>
- <!--class Prefix:identifier View Controller-->
- <scene sceneID="tne-QT-ifu">
- <objects>
- <viewController id="BYZ-38-t0r" customClass="ARViewController" sceneMemberID="viewController">
- <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
- <rect key="frame" x="0.0" y="20" width="768" height="1004"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
- </view>
- </viewController>
- <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
- </objects>
- </scene>
- </scenes>
- <simulatedMetricsContainer key="defaultSimulatedMetrics">
- <simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackOpaque"/>
- <simulatedOrientationMetrics key="orientation"/>
- <simulatedScreenMetrics key="destination"/>
- </simulatedMetricsContainer>
-</document>
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
- <dependencies>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
- </dependencies>
- <scenes>
- <!--class Prefix:identifier View Controller-->
- <scene sceneID="ufC-wZ-h7g">
- <objects>
- <viewController id="vXZ-lx-hvc" customClass="ARViewController" sceneMemberID="viewController">
- <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
- <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
- </view>
- </viewController>
- <placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
- </objects>
- </scene>
- </scenes>
- <simulatedMetricsContainer key="defaultSimulatedMetrics">
- <simulatedStatusBarMetrics key="statusBar"/>
- <simulatedOrientationMetrics key="orientation"/>
- <simulatedScreenMetrics key="destination" type="retina4"/>
- </simulatedMetricsContainer>
-</document>

0 comments on commit 24ea37c

Please sign in to comment.