Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

finished chapter 8

  • Loading branch information...
commit 15cbb9f51784937323799877192a634d706fe253 1 parent e5bd0ba
@paulyoder authored
View
282 HeavyRotation/HeavyRotation.xcodeproj/project.pbxproj
@@ -0,0 +1,282 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ DAF44D88153E092900725C21 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAF44D87153E092900725C21 /* UIKit.framework */; };
+ DAF44D8A153E092900725C21 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAF44D89153E092900725C21 /* Foundation.framework */; };
+ DAF44D8C153E092900725C21 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DAF44D8B153E092900725C21 /* CoreGraphics.framework */; };
+ DAF44D92153E092900725C21 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = DAF44D90153E092900725C21 /* InfoPlist.strings */; };
+ DAF44D94153E092900725C21 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DAF44D93153E092900725C21 /* main.m */; };
+ DAF44D98153E092900725C21 /* RotationAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DAF44D97153E092900725C21 /* RotationAppDelegate.m */; };
+ DAF44DA1153E0BD700725C21 /* HeavyViewControllerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DAF44D9F153E0BD700725C21 /* HeavyViewControllerViewController.m */; };
+ DAF44DA2153E0BD700725C21 /* HeavyViewControllerViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = DAF44DA0153E0BD700725C21 /* HeavyViewControllerViewController.xib */; };
+ DAF44DA4153E0CD200725C21 /* joeeye.jpg in Resources */ = {isa = PBXBuildFile; fileRef = DAF44DA3153E0CD200725C21 /* joeeye.jpg */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ DAF44D83153E092900725C21 /* HeavyRotation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HeavyRotation.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ DAF44D87153E092900725C21 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ DAF44D89153E092900725C21 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ DAF44D8B153E092900725C21 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ DAF44D8F153E092900725C21 /* HeavyRotation-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HeavyRotation-Info.plist"; sourceTree = "<group>"; };
+ DAF44D91153E092900725C21 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ DAF44D93153E092900725C21 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ DAF44D95153E092900725C21 /* HeavyRotation-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HeavyRotation-Prefix.pch"; sourceTree = "<group>"; };
+ DAF44D96153E092900725C21 /* RotationAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RotationAppDelegate.h; sourceTree = "<group>"; };
+ DAF44D97153E092900725C21 /* RotationAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RotationAppDelegate.m; sourceTree = "<group>"; };
+ DAF44D9E153E0BD700725C21 /* HeavyViewControllerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HeavyViewControllerViewController.h; sourceTree = "<group>"; };
+ DAF44D9F153E0BD700725C21 /* HeavyViewControllerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HeavyViewControllerViewController.m; sourceTree = "<group>"; };
+ DAF44DA0153E0BD700725C21 /* HeavyViewControllerViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = HeavyViewControllerViewController.xib; sourceTree = "<group>"; };
+ DAF44DA3153E0CD200725C21 /* joeeye.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = joeeye.jpg; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ DAF44D80153E092900725C21 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DAF44D88153E092900725C21 /* UIKit.framework in Frameworks */,
+ DAF44D8A153E092900725C21 /* Foundation.framework in Frameworks */,
+ DAF44D8C153E092900725C21 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ DAF44D78153E092900725C21 = {
+ isa = PBXGroup;
+ children = (
+ DAF44D8D153E092900725C21 /* HeavyRotation */,
+ DAF44D86153E092900725C21 /* Frameworks */,
+ DAF44D84153E092900725C21 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ DAF44D84153E092900725C21 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ DAF44D83153E092900725C21 /* HeavyRotation.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ DAF44D86153E092900725C21 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ DAF44D87153E092900725C21 /* UIKit.framework */,
+ DAF44D89153E092900725C21 /* Foundation.framework */,
+ DAF44D8B153E092900725C21 /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ DAF44D8D153E092900725C21 /* HeavyRotation */ = {
+ isa = PBXGroup;
+ children = (
+ DAF44D96153E092900725C21 /* RotationAppDelegate.h */,
+ DAF44D97153E092900725C21 /* RotationAppDelegate.m */,
+ DAF44D9E153E0BD700725C21 /* HeavyViewControllerViewController.h */,
+ DAF44DA3153E0CD200725C21 /* joeeye.jpg */,
+ DAF44D9F153E0BD700725C21 /* HeavyViewControllerViewController.m */,
+ DAF44DA0153E0BD700725C21 /* HeavyViewControllerViewController.xib */,
+ DAF44D8E153E092900725C21 /* Supporting Files */,
+ );
+ path = HeavyRotation;
+ sourceTree = "<group>";
+ };
+ DAF44D8E153E092900725C21 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ DAF44D8F153E092900725C21 /* HeavyRotation-Info.plist */,
+ DAF44D90153E092900725C21 /* InfoPlist.strings */,
+ DAF44D93153E092900725C21 /* main.m */,
+ DAF44D95153E092900725C21 /* HeavyRotation-Prefix.pch */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ DAF44D82153E092900725C21 /* HeavyRotation */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = DAF44D9B153E092900725C21 /* Build configuration list for PBXNativeTarget "HeavyRotation" */;
+ buildPhases = (
+ DAF44D7F153E092900725C21 /* Sources */,
+ DAF44D80153E092900725C21 /* Frameworks */,
+ DAF44D81153E092900725C21 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = HeavyRotation;
+ productName = HeavyRotation;
+ productReference = DAF44D83153E092900725C21 /* HeavyRotation.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ DAF44D7A153E092900725C21 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ CLASSPREFIX = Rotation;
+ LastUpgradeCheck = 0430;
+ };
+ buildConfigurationList = DAF44D7D153E092900725C21 /* Build configuration list for PBXProject "HeavyRotation" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = DAF44D78153E092900725C21;
+ productRefGroup = DAF44D84153E092900725C21 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ DAF44D82153E092900725C21 /* HeavyRotation */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ DAF44D81153E092900725C21 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DAF44D92153E092900725C21 /* InfoPlist.strings in Resources */,
+ DAF44DA2153E0BD700725C21 /* HeavyViewControllerViewController.xib in Resources */,
+ DAF44DA4153E0CD200725C21 /* joeeye.jpg in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ DAF44D7F153E092900725C21 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DAF44D94153E092900725C21 /* main.m in Sources */,
+ DAF44D98153E092900725C21 /* RotationAppDelegate.m in Sources */,
+ DAF44DA1153E0BD700725C21 /* HeavyViewControllerViewController.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ DAF44D90153E092900725C21 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ DAF44D91153E092900725C21 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ DAF44D99153E092900725C21 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ DAF44D9A153E092900725C21 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ DAF44D9C153E092900725C21 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "HeavyRotation/HeavyRotation-Prefix.pch";
+ INFOPLIST_FILE = "HeavyRotation/HeavyRotation-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ DAF44D9D153E092900725C21 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "HeavyRotation/HeavyRotation-Prefix.pch";
+ INFOPLIST_FILE = "HeavyRotation/HeavyRotation-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ DAF44D7D153E092900725C21 /* Build configuration list for PBXProject "HeavyRotation" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ DAF44D99153E092900725C21 /* Debug */,
+ DAF44D9A153E092900725C21 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ DAF44D9B153E092900725C21 /* Build configuration list for PBXNativeTarget "HeavyRotation" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ DAF44D9C153E092900725C21 /* Debug */,
+ DAF44D9D153E092900725C21 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = DAF44D7A153E092900725C21 /* Project object */;
+}
View
7 HeavyRotation/HeavyRotation.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:HeavyRotation.xcodeproj">
+ </FileRef>
+</Workspace>
View
BIN  ...n/HeavyRotation.xcodeproj/project.xcworkspace/xcuserdata/paul.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
View
85 HeavyRotation/HeavyRotation.xcodeproj/xcuserdata/paul.xcuserdatad/xcschemes/HeavyRotation.xcscheme
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "DAF44D82153E092900725C21"
+ BuildableName = "HeavyRotation.app"
+ BlueprintName = "HeavyRotation"
+ ReferencedContainer = "container:HeavyRotation.xcodeproj">
+ </BuildableReference>
+ </BuildActionEntry>
+ </BuildActionEntries>
+ </BuildAction>
+ <TestAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ buildConfiguration = "Debug">
+ <Testables>
+ </Testables>
+ <MacroExpansion>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "DAF44D82153E092900725C21"
+ BuildableName = "HeavyRotation.app"
+ BlueprintName = "HeavyRotation"
+ ReferencedContainer = "container:HeavyRotation.xcodeproj">
+ </BuildableReference>
+ </MacroExpansion>
+ </TestAction>
+ <LaunchAction
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Debug"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ allowLocationSimulation = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "DAF44D82153E092900725C21"
+ BuildableName = "HeavyRotation.app"
+ BlueprintName = "HeavyRotation"
+ ReferencedContainer = "container:HeavyRotation.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "DAF44D82153E092900725C21"
+ BuildableName = "HeavyRotation.app"
+ BlueprintName = "HeavyRotation"
+ ReferencedContainer = "container:HeavyRotation.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
View
22 HeavyRotation/HeavyRotation.xcodeproj/xcuserdata/paul.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>HeavyRotation.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>DAF44D82153E092900725C21</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
View
38 HeavyRotation/HeavyRotation/HeavyRotation-Info.plist
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.bignerdranch.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
View
14 HeavyRotation/HeavyRotation/HeavyRotation-Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'HeavyRotation' target in the 'HeavyRotation' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_3_0
+#warning "This project uses features only available in iOS SDK 3.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
View
13 HeavyRotation/HeavyRotation/HeavyViewControllerViewController.h
@@ -0,0 +1,13 @@
+//
+// HeavyViewControllerViewController.h
+// HeavyRotation
+//
+// Created by Paul Yoder on 4/17/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface HeavyViewControllerViewController : UIViewController
+
+@end
View
22 HeavyRotation/HeavyRotation/HeavyViewControllerViewController.m
@@ -0,0 +1,22 @@
+//
+// HeavyViewControllerViewController.m
+// HeavyRotation
+//
+// Created by Paul Yoder on 4/17/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import "HeavyViewControllerViewController.h"
+
+@interface HeavyViewControllerViewController ()
+
+@end
+
+@implementation HeavyViewControllerViewController
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)x
+{
+ return (x == UIInterfaceOrientationPortrait) || UIInterfaceOrientationIsLandscape(x);
+}
+
+@end
View
232 HeavyRotation/HeavyRotation/HeavyViewControllerViewController.xib
@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1296</int>
+ <string key="IBDocument.SystemVersion">11D50b</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">1181</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBUISlider</string>
+ <string>IBUIButton</string>
+ <string>IBUIImageView</string>
+ <string>IBUIView</string>
+ <string>IBProxyObject</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUISlider" id="4486331">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">290</int>
+ <string key="NSFrame">{{18, 20}, {284, 23}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <float key="IBUIValue">0.5</float>
+ </object>
+ <object class="IBUIImageView" id="690894341">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{20, 50}, {280, 345}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
+ </object>
+ <int key="IBUIContentMode">1</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSCustomResource" key="IBUIImage">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">joeeye.jpg</string>
+ </object>
+ </object>
+ <object class="IBUIButton" id="502960341">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{20, 403}, {50, 37}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <object class="NSColor" key="IBUIHighlightedTitleColor" id="512838325">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor" id="816537619">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ <object class="IBUIFontDescription" key="IBUIFontDescription" id="504010512">
+ <int key="type">2</int>
+ <double key="pointSize">15</double>
+ </object>
+ <object class="NSFont" key="IBUIFont" id="252424724">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">15</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ <object class="IBUIButton" id="393199902">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">265</int>
+ <string key="NSFrame">{{255, 403}, {45, 37}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <reference key="IBUIHighlightedTitleColor" ref="512838325"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="816537619"/>
+ <reference key="IBUIFontDescription" ref="504010512"/>
+ <reference key="IBUIFont" ref="252424724"/>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="191373211"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="4486331"/>
+ <reference ref="690894341"/>
+ <reference ref="502960341"/>
+ <reference ref="393199902"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="4486331"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="690894341"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">7</int>
+ <reference key="object" ref="502960341"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="393199902"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">HeavyViewControllerViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="7.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">8</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes"/>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1296" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
+ <string key="NS.key.0">joeeye.jpg</string>
+ <string key="NS.object.0">{437, 437}</string>
+ </object>
+ <string key="IBCocoaTouchPluginVersion">1181</string>
+ </data>
+</archive>
View
15 HeavyRotation/HeavyRotation/RotationAppDelegate.h
@@ -0,0 +1,15 @@
+//
+// RotationAppDelegate.h
+// HeavyRotation
+//
+// Created by Paul Yoder on 4/17/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface RotationAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
View
76 HeavyRotation/HeavyRotation/RotationAppDelegate.m
@@ -0,0 +1,76 @@
+//
+// RotationAppDelegate.m
+// HeavyRotation
+//
+// Created by Paul Yoder on 4/17/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import "RotationAppDelegate.h"
+#import "HeavyViewControllerViewController.h"
+
+@implementation RotationAppDelegate
+
+@synthesize window = _window;
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ // Override point for customization after application launch.
+
+ // Get the device object
+ UIDevice *device = [UIDevice currentDevice];
+
+ // Tell it to start monitoring the accelerometer for orientation
+ [device beginGeneratingDeviceOrientationNotifications];
+
+ // Get the notification center for the app
+ NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
+
+ // Add yourself as an observer
+ [nc addObserver:self
+ selector:@selector(orientationChanged:)
+ name:UIDeviceOrientationDidChangeNotification
+ object:device];
+
+ [[self window] setRootViewController:[[HeavyViewControllerViewController alloc] init]];
+
+ self.window.backgroundColor = [UIColor whiteColor];
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+- (void)orientationChanged:(NSNotification *)note
+{
+ // Log the constant that represents the curent orientation
+ NSLog(@"orientationChanged: %d", [[note object] orientation]);
+}
+
+- (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
View
2  HeavyRotation/HeavyRotation/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
BIN  HeavyRotation/HeavyRotation/joeeye.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
18 HeavyRotation/HeavyRotation/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// HeavyRotation
+//
+// Created by Paul Yoder on 4/17/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "RotationAppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([RotationAppDelegate class]));
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.