summaryrefslogtreecommitdiff
path: root/Accelerometer
diff options
context:
space:
mode:
Diffstat (limited to 'Accelerometer')
-rw-r--r--Accelerometer/Accelerometer.xcodeproj/project.pbxproj305
-rw-r--r--Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/contents.xcworkspacedata7
-rw-r--r--Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstatebin0 -> 12199 bytes
-rw-r--r--Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Accelerometer.xcscheme86
-rw-r--r--Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist22
-rw-r--r--Accelerometer/Accelerometer/Accelerometer-Info.plist38
-rw-r--r--Accelerometer/Accelerometer/Accelerometer-Prefix.pch14
-rw-r--r--Accelerometer/Accelerometer/AppDelegate.h19
-rw-r--r--Accelerometer/Accelerometer/AppDelegate.m52
-rw-r--r--Accelerometer/Accelerometer/Default-568h@2x.pngbin0 -> 18594 bytes
-rw-r--r--Accelerometer/Accelerometer/Default.pngbin0 -> 6540 bytes
-rw-r--r--Accelerometer/Accelerometer/Default@2x.pngbin0 -> 16107 bytes
-rw-r--r--Accelerometer/Accelerometer/ViewController.h13
-rw-r--r--Accelerometer/Accelerometer/ViewController.m58
-rw-r--r--Accelerometer/Accelerometer/en.lproj/InfoPlist.strings2
-rw-r--r--Accelerometer/Accelerometer/en.lproj/ViewController.xib283
-rw-r--r--Accelerometer/Accelerometer/main.m18
17 files changed, 917 insertions, 0 deletions
diff --git a/Accelerometer/Accelerometer.xcodeproj/project.pbxproj b/Accelerometer/Accelerometer.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..24e9ab0
--- /dev/null
+++ b/Accelerometer/Accelerometer.xcodeproj/project.pbxproj
@@ -0,0 +1,305 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ CD459B8B1766C40400288A26 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD459B8A1766C40400288A26 /* UIKit.framework */; };
+ CD459B8D1766C40400288A26 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD459B8C1766C40400288A26 /* Foundation.framework */; };
+ CD459B8F1766C40400288A26 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD459B8E1766C40400288A26 /* CoreGraphics.framework */; };
+ CD459B951766C40400288A26 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CD459B931766C40400288A26 /* InfoPlist.strings */; };
+ CD459B971766C40400288A26 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CD459B961766C40400288A26 /* main.m */; };
+ CD459B9B1766C40400288A26 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CD459B9A1766C40400288A26 /* AppDelegate.m */; };
+ CD459B9D1766C40400288A26 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = CD459B9C1766C40400288A26 /* Default.png */; };
+ CD459B9F1766C40400288A26 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CD459B9E1766C40400288A26 /* Default@2x.png */; };
+ CD459BA11766C40400288A26 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CD459BA01766C40400288A26 /* Default-568h@2x.png */; };
+ CD459BA41766C40400288A26 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CD459BA31766C40400288A26 /* ViewController.m */; };
+ CD459BA71766C40400288A26 /* ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = CD459BA51766C40400288A26 /* ViewController.xib */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ CD459B871766C40400288A26 /* Accelerometer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Accelerometer.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ CD459B8A1766C40400288A26 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ CD459B8C1766C40400288A26 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ CD459B8E1766C40400288A26 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ CD459B921766C40400288A26 /* Accelerometer-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Accelerometer-Info.plist"; sourceTree = "<group>"; };
+ CD459B941766C40400288A26 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ CD459B961766C40400288A26 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ CD459B981766C40400288A26 /* Accelerometer-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Accelerometer-Prefix.pch"; sourceTree = "<group>"; };
+ CD459B991766C40400288A26 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+ CD459B9A1766C40400288A26 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+ CD459B9C1766C40400288A26 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ CD459B9E1766C40400288A26 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+ CD459BA01766C40400288A26 /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+ CD459BA21766C40400288A26 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
+ CD459BA31766C40400288A26 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
+ CD459BA61766C40400288A26 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/ViewController.xib; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ CD459B841766C40400288A26 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ CD459B8B1766C40400288A26 /* UIKit.framework in Frameworks */,
+ CD459B8D1766C40400288A26 /* Foundation.framework in Frameworks */,
+ CD459B8F1766C40400288A26 /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ CD459B7E1766C40400288A26 = {
+ isa = PBXGroup;
+ children = (
+ CD459B901766C40400288A26 /* Accelerometer */,
+ CD459B891766C40400288A26 /* Frameworks */,
+ CD459B881766C40400288A26 /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ CD459B881766C40400288A26 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ CD459B871766C40400288A26 /* Accelerometer.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ CD459B891766C40400288A26 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ CD459B8A1766C40400288A26 /* UIKit.framework */,
+ CD459B8C1766C40400288A26 /* Foundation.framework */,
+ CD459B8E1766C40400288A26 /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ CD459B901766C40400288A26 /* Accelerometer */ = {
+ isa = PBXGroup;
+ children = (
+ CD459B991766C40400288A26 /* AppDelegate.h */,
+ CD459B9A1766C40400288A26 /* AppDelegate.m */,
+ CD459BA21766C40400288A26 /* ViewController.h */,
+ CD459BA31766C40400288A26 /* ViewController.m */,
+ CD459BA51766C40400288A26 /* ViewController.xib */,
+ CD459B911766C40400288A26 /* Supporting Files */,
+ );
+ path = Accelerometer;
+ sourceTree = "<group>";
+ };
+ CD459B911766C40400288A26 /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ CD459B921766C40400288A26 /* Accelerometer-Info.plist */,
+ CD459B931766C40400288A26 /* InfoPlist.strings */,
+ CD459B961766C40400288A26 /* main.m */,
+ CD459B981766C40400288A26 /* Accelerometer-Prefix.pch */,
+ CD459B9C1766C40400288A26 /* Default.png */,
+ CD459B9E1766C40400288A26 /* Default@2x.png */,
+ CD459BA01766C40400288A26 /* Default-568h@2x.png */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ CD459B861766C40400288A26 /* Accelerometer */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = CD459BAA1766C40400288A26 /* Build configuration list for PBXNativeTarget "Accelerometer" */;
+ buildPhases = (
+ CD459B831766C40400288A26 /* Sources */,
+ CD459B841766C40400288A26 /* Frameworks */,
+ CD459B851766C40400288A26 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Accelerometer;
+ productName = Accelerometer;
+ productReference = CD459B871766C40400288A26 /* Accelerometer.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ CD459B7F1766C40400288A26 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0460;
+ ORGANIZATIONNAME = "mo khan";
+ };
+ buildConfigurationList = CD459B821766C40400288A26 /* Build configuration list for PBXProject "Accelerometer" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = CD459B7E1766C40400288A26;
+ productRefGroup = CD459B881766C40400288A26 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ CD459B861766C40400288A26 /* Accelerometer */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ CD459B851766C40400288A26 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ CD459B951766C40400288A26 /* InfoPlist.strings in Resources */,
+ CD459B9D1766C40400288A26 /* Default.png in Resources */,
+ CD459B9F1766C40400288A26 /* Default@2x.png in Resources */,
+ CD459BA11766C40400288A26 /* Default-568h@2x.png in Resources */,
+ CD459BA71766C40400288A26 /* ViewController.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ CD459B831766C40400288A26 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ CD459B971766C40400288A26 /* main.m in Sources */,
+ CD459B9B1766C40400288A26 /* AppDelegate.m in Sources */,
+ CD459BA41766C40400288A26 /* ViewController.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ CD459B931766C40400288A26 /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ CD459B941766C40400288A26 /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ CD459BA51766C40400288A26 /* ViewController.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ CD459BA61766C40400288A26 /* en */,
+ );
+ name = ViewController.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ CD459BA81766C40400288A26 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = 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_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ CD459BA91766C40400288A26 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ CD459BAB1766C40400288A26 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "Accelerometer/Accelerometer-Prefix.pch";
+ INFOPLIST_FILE = "Accelerometer/Accelerometer-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ CD459BAC1766C40400288A26 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "Accelerometer/Accelerometer-Prefix.pch";
+ INFOPLIST_FILE = "Accelerometer/Accelerometer-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ CD459B821766C40400288A26 /* Build configuration list for PBXProject "Accelerometer" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ CD459BA81766C40400288A26 /* Debug */,
+ CD459BA91766C40400288A26 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ CD459BAA1766C40400288A26 /* Build configuration list for PBXNativeTarget "Accelerometer" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ CD459BAB1766C40400288A26 /* Debug */,
+ CD459BAC1766C40400288A26 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = CD459B7F1766C40400288A26 /* Project object */;
+}
diff --git a/Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..5af98f4
--- /dev/null
+++ b/Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:Accelerometer.xcodeproj">
+ </FileRef>
+</Workspace>
diff --git a/Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate b/Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..0c800e1
--- /dev/null
+++ b/Accelerometer/Accelerometer.xcodeproj/project.xcworkspace/xcuserdata/mo.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
diff --git a/Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Accelerometer.xcscheme b/Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Accelerometer.xcscheme
new file mode 100644
index 0000000..8ade243
--- /dev/null
+++ b/Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/Accelerometer.xcscheme
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0460"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "CD459B861766C40400288A26"
+ BuildableName = "Accelerometer.app"
+ BlueprintName = "Accelerometer"
+ ReferencedContainer = "container:Accelerometer.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 = "CD459B861766C40400288A26"
+ BuildableName = "Accelerometer.app"
+ BlueprintName = "Accelerometer"
+ ReferencedContainer = "container:Accelerometer.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 = "CD459B861766C40400288A26"
+ BuildableName = "Accelerometer.app"
+ BlueprintName = "Accelerometer"
+ ReferencedContainer = "container:Accelerometer.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "CD459B861766C40400288A26"
+ BuildableName = "Accelerometer.app"
+ BlueprintName = "Accelerometer"
+ ReferencedContainer = "container:Accelerometer.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
diff --git a/Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist b/Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..46b7f1c
--- /dev/null
+++ b/Accelerometer/Accelerometer.xcodeproj/xcuserdata/mo.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>Accelerometer.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>CD459B861766C40400288A26</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
diff --git a/Accelerometer/Accelerometer/Accelerometer-Info.plist b/Accelerometer/Accelerometer/Accelerometer-Info.plist
new file mode 100644
index 0000000..72d55a8
--- /dev/null
+++ b/Accelerometer/Accelerometer/Accelerometer-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>mokhan.ca.${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>
diff --git a/Accelerometer/Accelerometer/Accelerometer-Prefix.pch b/Accelerometer/Accelerometer/Accelerometer-Prefix.pch
new file mode 100644
index 0000000..a5456cc
--- /dev/null
+++ b/Accelerometer/Accelerometer/Accelerometer-Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'Accelerometer' target in the 'Accelerometer' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_4_0
+#warning "This project uses features only available in iOS SDK 4.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
diff --git a/Accelerometer/Accelerometer/AppDelegate.h b/Accelerometer/Accelerometer/AppDelegate.h
new file mode 100644
index 0000000..fa8e44f
--- /dev/null
+++ b/Accelerometer/Accelerometer/AppDelegate.h
@@ -0,0 +1,19 @@
+//
+// AppDelegate.h
+// Accelerometer
+//
+// Created by mo khan on 2013-06-10.
+// Copyright (c) 2013 mo khan. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class ViewController;
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@property (strong, nonatomic) ViewController *viewController;
+
+@end
diff --git a/Accelerometer/Accelerometer/AppDelegate.m b/Accelerometer/Accelerometer/AppDelegate.m
new file mode 100644
index 0000000..fd5bf6e
--- /dev/null
+++ b/Accelerometer/Accelerometer/AppDelegate.m
@@ -0,0 +1,52 @@
+//
+// AppDelegate.m
+// Accelerometer
+//
+// Created by mo khan on 2013-06-10.
+// Copyright (c) 2013 mo khan. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+#import "ViewController.h"
+
+@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.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
+ self.window.rootViewController = self.viewController;
+ [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
diff --git a/Accelerometer/Accelerometer/Default-568h@2x.png b/Accelerometer/Accelerometer/Default-568h@2x.png
new file mode 100644
index 0000000..0891b7a
--- /dev/null
+++ b/Accelerometer/Accelerometer/Default-568h@2x.png
Binary files differ
diff --git a/Accelerometer/Accelerometer/Default.png b/Accelerometer/Accelerometer/Default.png
new file mode 100644
index 0000000..4c8ca6f
--- /dev/null
+++ b/Accelerometer/Accelerometer/Default.png
Binary files differ
diff --git a/Accelerometer/Accelerometer/Default@2x.png b/Accelerometer/Accelerometer/Default@2x.png
new file mode 100644
index 0000000..35b84cf
--- /dev/null
+++ b/Accelerometer/Accelerometer/Default@2x.png
Binary files differ
diff --git a/Accelerometer/Accelerometer/ViewController.h b/Accelerometer/Accelerometer/ViewController.h
new file mode 100644
index 0000000..8caf8a4
--- /dev/null
+++ b/Accelerometer/Accelerometer/ViewController.h
@@ -0,0 +1,13 @@
+//
+// ViewController.h
+// Accelerometer
+//
+// Created by mo khan on 2013-06-10.
+// Copyright (c) 2013 mo khan. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface ViewController : UIViewController <UIAccelerometerDelegate>
+@property (strong, nonatomic) IBOutlet UIView * myView;
+@end
diff --git a/Accelerometer/Accelerometer/ViewController.m b/Accelerometer/Accelerometer/ViewController.m
new file mode 100644
index 0000000..60dfbeb
--- /dev/null
+++ b/Accelerometer/Accelerometer/ViewController.m
@@ -0,0 +1,58 @@
+//
+// ViewController.m
+// Accelerometer
+//
+// Created by mo khan on 2013-06-10.
+// Copyright (c) 2013 mo khan. All rights reserved.
+//
+
+#import "ViewController.h"
+
+@interface ViewController ()
+
+@end
+
+@implementation ViewController
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ // Do any additional setup after loading the view, typically from a nib.
+ UIAccelerometer * acc = [UIAccelerometer sharedAccelerometer];
+ acc.delegate = self;
+ acc.updateInterval = 1.0f/30.0f;
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
+}
+
+-(void) accelerometer:(UIAccelerometer *) accelerometer
+ didAccelerate:(UIAcceleration *) acceleration
+{
+ CGPoint newPoint = CGPointMake(self.myView.center.x, self.myView.
+ center.y);
+ if(acceleration.x > 0 && newPoint.x < 290)
+ {
+ newPoint.x = newPoint.x + (acceleration.x * 20);
+ [self.myView setCenter:newPoint];
+ }
+ if(acceleration.x < 0 && newPoint.x > 30)
+ {
+ newPoint.x = newPoint.x + (acceleration.x * 20);
+ [self.myView setCenter:newPoint];
+ }
+ if(acceleration.y < 0 && newPoint.y < 430)
+ {
+ newPoint.y = newPoint.y - (acceleration.y * 20);
+ [self.myView setCenter:newPoint];
+ }
+ if(acceleration.y > 0 && newPoint.y > 30)
+ {
+ newPoint.y = newPoint.y - (acceleration.y * 20);
+ [self.myView setCenter:newPoint];
+ }
+}
+@end
diff --git a/Accelerometer/Accelerometer/en.lproj/InfoPlist.strings b/Accelerometer/Accelerometer/en.lproj/InfoPlist.strings
new file mode 100644
index 0000000..477b28f
--- /dev/null
+++ b/Accelerometer/Accelerometer/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
diff --git a/Accelerometer/Accelerometer/en.lproj/ViewController.xib b/Accelerometer/Accelerometer/en.lproj/ViewController.xib
new file mode 100644
index 0000000..6f8d313
--- /dev/null
+++ b/Accelerometer/Accelerometer/en.lproj/ViewController.xib
@@ -0,0 +1,283 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1552</int>
+ <string key="IBDocument.SystemVersion">12D78</string>
+ <string key="IBDocument.InterfaceBuilderVersion">3084</string>
+ <string key="IBDocument.AppKitVersion">1187.37</string>
+ <string key="IBDocument.HIToolboxVersion">626.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">3084</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBNSLayoutConstraint</string>
+ <string>IBProxyObject</string>
+ <string>IBUIView</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="843779117">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="774585933">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUIView" id="447699768">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{130, 244}, {60, 60}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MSAwLjk3ODIzMzU5NTQgMC4xMzYxMDc0OTI5AA</bytes>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 20}, {320, 548}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="447699768"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics">
+ <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string>
+ <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <array key="dict.sortedKeys">
+ <integer value="1"/>
+ <integer value="3"/>
+ </array>
+ <array key="dict.values">
+ <string>{320, 568}</string>
+ <string>{568, 320}</string>
+ </array>
+ </object>
+ <string key="IBUITargetRuntime">IBCocoaTouchFramework</string>
+ <string key="IBUIDisplayName">Retina 4 Full Screen</string>
+ <int key="IBUIType">2</int>
+ </object>
+ <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="774585933"/>
+ </object>
+ <int key="connectionID">7</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">myView</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="447699768"/>
+ </object>
+ <int key="connectionID">19</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="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="843779117"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="774585933"/>
+ <array class="NSMutableArray" key="children">
+ <object class="IBNSLayoutConstraint" id="742018182">
+ <reference key="firstItem" ref="447699768"/>
+ <int key="firstAttribute">3</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">3</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">244</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="596057239">
+ <reference key="firstItem" ref="447699768"/>
+ <int key="firstAttribute">10</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">10</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">5</int>
+ <float key="scoringTypeFloat">22</float>
+ <int key="contentType">2</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="500949146">
+ <reference key="firstItem" ref="447699768"/>
+ <int key="firstAttribute">9</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">9</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">5</int>
+ <float key="scoringTypeFloat">22</float>
+ <int key="contentType">2</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="591920689">
+ <reference key="firstItem" ref="447699768"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">5</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">130</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">3</int>
+ </object>
+ <reference ref="447699768"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="447699768"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">15</int>
+ <reference key="object" ref="591920689"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">16</int>
+ <reference key="object" ref="500949146"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">17</int>
+ <reference key="object" ref="596057239"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">18</int>
+ <reference key="object" ref="742018182"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">ViewController</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="15.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="16.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="17.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="18.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <array class="NSMutableArray" key="6.IBViewMetadataConstraints">
+ <reference ref="591920689"/>
+ <reference ref="500949146"/>
+ <reference ref="596057239"/>
+ <reference ref="742018182"/>
+ </array>
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <boolean value="NO" key="8.IBViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">19</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">NSLayoutConstraint</string>
+ <string key="superclassName">NSObject</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NSLayoutConstraint.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">ViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">myView</string>
+ <string key="NS.object.0">UIView</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">myView</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">myView</string>
+ <string key="candidateClassName">UIView</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/ViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <bool key="IBDocument.UseAutolayout">YES</bool>
+ <string key="IBCocoaTouchPluginVersion">2083</string>
+ </data>
+</archive>
diff --git a/Accelerometer/Accelerometer/main.m b/Accelerometer/Accelerometer/main.m
new file mode 100644
index 0000000..1b8faae
--- /dev/null
+++ b/Accelerometer/Accelerometer/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// Accelerometer
+//
+// Created by mo khan on 2013-06-10.
+// Copyright (c) 2013 mo khan. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "AppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
+ }
+}