diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..031a7ef Binary files /dev/null and b/.DS_Store differ diff --git a/Default.png b/Default.png new file mode 100644 index 0000000..0052b44 Binary files /dev/null and b/Default.png differ diff --git a/Default@2x.png b/Default@2x.png new file mode 100644 index 0000000..5d32b7a Binary files /dev/null and b/Default@2x.png differ diff --git a/PushUps.xcodeproj/project.pbxproj b/PushUps.xcodeproj/project.pbxproj new file mode 100644 index 0000000..daa1a33 --- /dev/null +++ b/PushUps.xcodeproj/project.pbxproj @@ -0,0 +1,336 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 230D1B2915EC19D1003A6351 /* pushUpSmall.png in Resources */ = {isa = PBXBuildFile; fileRef = 230D1B2815EC19D1003A6351 /* pushUpSmall.png */; }; + 230D1B2C15EC1A10003A6351 /* pushUpBig.png in Resources */ = {isa = PBXBuildFile; fileRef = 230D1B2B15EC1A10003A6351 /* pushUpBig.png */; }; + 230D1B2E15EC1E53003A6351 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 230D1B2D15EC1E53003A6351 /* Default.png */; }; + 230D1B3015EC1F4D003A6351 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 230D1B2F15EC1F4D003A6351 /* Default@2x.png */; }; + 230DCF1A15D1A2BF008CF3E2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 230DCF1915D1A2BF008CF3E2 /* UIKit.framework */; }; + 230DCF1C15D1A2BF008CF3E2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 230DCF1B15D1A2BF008CF3E2 /* Foundation.framework */; }; + 230DCF1E15D1A2BF008CF3E2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 230DCF1D15D1A2BF008CF3E2 /* CoreGraphics.framework */; }; + 230DCF2415D1A2BF008CF3E2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 230DCF2215D1A2BF008CF3E2 /* InfoPlist.strings */; }; + 230DCF2615D1A2BF008CF3E2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 230DCF2515D1A2BF008CF3E2 /* main.m */; }; + 230DCF2A15D1A2BF008CF3E2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 230DCF2915D1A2BF008CF3E2 /* AppDelegate.m */; }; + 230DCF2D15D1A2BF008CF3E2 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 230DCF2B15D1A2BF008CF3E2 /* MainStoryboard.storyboard */; }; + 230DCF3015D1A2BF008CF3E2 /* FirstViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 230DCF2F15D1A2BF008CF3E2 /* FirstViewController.m */; }; + 230DCF3215D1A2BF008CF3E2 /* first.png in Resources */ = {isa = PBXBuildFile; fileRef = 230DCF3115D1A2BF008CF3E2 /* first.png */; }; + 230DCF3415D1A2BF008CF3E2 /* first@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 230DCF3315D1A2BF008CF3E2 /* first@2x.png */; }; + 230DCF3715D1A2BF008CF3E2 /* KissViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 230DCF3615D1A2BF008CF3E2 /* KissViewController.m */; }; + 230DCF3915D1A2BF008CF3E2 /* second.png in Resources */ = {isa = PBXBuildFile; fileRef = 230DCF3815D1A2BF008CF3E2 /* second.png */; }; + 230DCF3B15D1A2BF008CF3E2 /* second@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 230DCF3A15D1A2BF008CF3E2 /* second@2x.png */; }; + 230DCF4315D1BE3C008CF3E2 /* PushUpsViewControllerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 230DCF4215D1BE3C008CF3E2 /* PushUpsViewControllerViewController.m */; }; + 230DCF4615D1C3E5008CF3E2 /* YourPushUpsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 230DCF4515D1C3E5008CF3E2 /* YourPushUpsViewController.m */; }; + 230DCF4815D1C5D2008CF3E2 /* Twitter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 230DCF4715D1C5D2008CF3E2 /* Twitter.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 230D1B2815EC19D1003A6351 /* pushUpSmall.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pushUpSmall.png; sourceTree = ""; }; + 230D1B2B15EC1A10003A6351 /* pushUpBig.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = pushUpBig.png; sourceTree = ""; }; + 230D1B2D15EC1E53003A6351 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; + 230D1B2F15EC1F4D003A6351 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; + 230DCF1515D1A2BF008CF3E2 /* PushUps.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PushUps.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 230DCF1915D1A2BF008CF3E2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 230DCF1B15D1A2BF008CF3E2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 230DCF1D15D1A2BF008CF3E2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 230DCF2115D1A2BF008CF3E2 /* PushUps-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "PushUps-Info.plist"; sourceTree = ""; }; + 230DCF2315D1A2BF008CF3E2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 230DCF2515D1A2BF008CF3E2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 230DCF2715D1A2BF008CF3E2 /* PushUps-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PushUps-Prefix.pch"; sourceTree = ""; }; + 230DCF2815D1A2BF008CF3E2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 230DCF2915D1A2BF008CF3E2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 230DCF2C15D1A2BF008CF3E2 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = ""; }; + 230DCF2E15D1A2BF008CF3E2 /* FirstViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FirstViewController.h; sourceTree = ""; }; + 230DCF2F15D1A2BF008CF3E2 /* FirstViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FirstViewController.m; sourceTree = ""; }; + 230DCF3115D1A2BF008CF3E2 /* first.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = first.png; sourceTree = ""; }; + 230DCF3315D1A2BF008CF3E2 /* first@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "first@2x.png"; sourceTree = ""; }; + 230DCF3515D1A2BF008CF3E2 /* KissViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KissViewController.h; sourceTree = ""; }; + 230DCF3615D1A2BF008CF3E2 /* KissViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KissViewController.m; sourceTree = ""; }; + 230DCF3815D1A2BF008CF3E2 /* second.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = second.png; sourceTree = ""; }; + 230DCF3A15D1A2BF008CF3E2 /* second@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "second@2x.png"; sourceTree = ""; }; + 230DCF4115D1BE3C008CF3E2 /* PushUpsViewControllerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PushUpsViewControllerViewController.h; sourceTree = ""; }; + 230DCF4215D1BE3C008CF3E2 /* PushUpsViewControllerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PushUpsViewControllerViewController.m; sourceTree = ""; }; + 230DCF4415D1C3E5008CF3E2 /* YourPushUpsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YourPushUpsViewController.h; sourceTree = ""; }; + 230DCF4515D1C3E5008CF3E2 /* YourPushUpsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YourPushUpsViewController.m; sourceTree = ""; }; + 230DCF4715D1C5D2008CF3E2 /* Twitter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Twitter.framework; path = System/Library/Frameworks/Twitter.framework; sourceTree = SDKROOT; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 230DCF1215D1A2BF008CF3E2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 230DCF4815D1C5D2008CF3E2 /* Twitter.framework in Frameworks */, + 230DCF1A15D1A2BF008CF3E2 /* UIKit.framework in Frameworks */, + 230DCF1C15D1A2BF008CF3E2 /* Foundation.framework in Frameworks */, + 230DCF1E15D1A2BF008CF3E2 /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 230DCF0A15D1A2BF008CF3E2 = { + isa = PBXGroup; + children = ( + 230D1B2F15EC1F4D003A6351 /* Default@2x.png */, + 230D1B2D15EC1E53003A6351 /* Default.png */, + 230D1B2B15EC1A10003A6351 /* pushUpBig.png */, + 230D1B2815EC19D1003A6351 /* pushUpSmall.png */, + 230DCF4715D1C5D2008CF3E2 /* Twitter.framework */, + 230DCF1F15D1A2BF008CF3E2 /* PushUps */, + 230DCF1815D1A2BF008CF3E2 /* Frameworks */, + 230DCF1615D1A2BF008CF3E2 /* Products */, + ); + sourceTree = ""; + }; + 230DCF1615D1A2BF008CF3E2 /* Products */ = { + isa = PBXGroup; + children = ( + 230DCF1515D1A2BF008CF3E2 /* PushUps.app */, + ); + name = Products; + sourceTree = ""; + }; + 230DCF1815D1A2BF008CF3E2 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 230DCF1915D1A2BF008CF3E2 /* UIKit.framework */, + 230DCF1B15D1A2BF008CF3E2 /* Foundation.framework */, + 230DCF1D15D1A2BF008CF3E2 /* CoreGraphics.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 230DCF1F15D1A2BF008CF3E2 /* PushUps */ = { + isa = PBXGroup; + children = ( + 230DCF2815D1A2BF008CF3E2 /* AppDelegate.h */, + 230DCF2915D1A2BF008CF3E2 /* AppDelegate.m */, + 230DCF2B15D1A2BF008CF3E2 /* MainStoryboard.storyboard */, + 230DCF2E15D1A2BF008CF3E2 /* FirstViewController.h */, + 230DCF2F15D1A2BF008CF3E2 /* FirstViewController.m */, + 230DCF3515D1A2BF008CF3E2 /* KissViewController.h */, + 230DCF3615D1A2BF008CF3E2 /* KissViewController.m */, + 230DCF4115D1BE3C008CF3E2 /* PushUpsViewControllerViewController.h */, + 230DCF4215D1BE3C008CF3E2 /* PushUpsViewControllerViewController.m */, + 230DCF4415D1C3E5008CF3E2 /* YourPushUpsViewController.h */, + 230DCF4515D1C3E5008CF3E2 /* YourPushUpsViewController.m */, + 230DCF2015D1A2BF008CF3E2 /* Supporting Files */, + ); + path = PushUps; + sourceTree = ""; + }; + 230DCF2015D1A2BF008CF3E2 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 230DCF3815D1A2BF008CF3E2 /* second.png */, + 230DCF3315D1A2BF008CF3E2 /* first@2x.png */, + 230DCF3115D1A2BF008CF3E2 /* first.png */, + 230DCF3A15D1A2BF008CF3E2 /* second@2x.png */, + 230DCF2115D1A2BF008CF3E2 /* PushUps-Info.plist */, + 230DCF2215D1A2BF008CF3E2 /* InfoPlist.strings */, + 230DCF2515D1A2BF008CF3E2 /* main.m */, + 230DCF2715D1A2BF008CF3E2 /* PushUps-Prefix.pch */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 230DCF1415D1A2BF008CF3E2 /* PushUps */ = { + isa = PBXNativeTarget; + buildConfigurationList = 230DCF3E15D1A2BF008CF3E2 /* Build configuration list for PBXNativeTarget "PushUps" */; + buildPhases = ( + 230DCF1115D1A2BF008CF3E2 /* Sources */, + 230DCF1215D1A2BF008CF3E2 /* Frameworks */, + 230DCF1315D1A2BF008CF3E2 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = PushUps; + productName = PushUps; + productReference = 230DCF1515D1A2BF008CF3E2 /* PushUps.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 230DCF0C15D1A2BF008CF3E2 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0430; + }; + buildConfigurationList = 230DCF0F15D1A2BF008CF3E2 /* Build configuration list for PBXProject "PushUps" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 230DCF0A15D1A2BF008CF3E2; + productRefGroup = 230DCF1615D1A2BF008CF3E2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 230DCF1415D1A2BF008CF3E2 /* PushUps */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 230DCF1315D1A2BF008CF3E2 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 230DCF2415D1A2BF008CF3E2 /* InfoPlist.strings in Resources */, + 230DCF2D15D1A2BF008CF3E2 /* MainStoryboard.storyboard in Resources */, + 230DCF3215D1A2BF008CF3E2 /* first.png in Resources */, + 230DCF3415D1A2BF008CF3E2 /* first@2x.png in Resources */, + 230DCF3915D1A2BF008CF3E2 /* second.png in Resources */, + 230DCF3B15D1A2BF008CF3E2 /* second@2x.png in Resources */, + 230D1B2915EC19D1003A6351 /* pushUpSmall.png in Resources */, + 230D1B2C15EC1A10003A6351 /* pushUpBig.png in Resources */, + 230D1B2E15EC1E53003A6351 /* Default.png in Resources */, + 230D1B3015EC1F4D003A6351 /* Default@2x.png in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 230DCF1115D1A2BF008CF3E2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 230DCF2615D1A2BF008CF3E2 /* main.m in Sources */, + 230DCF2A15D1A2BF008CF3E2 /* AppDelegate.m in Sources */, + 230DCF3015D1A2BF008CF3E2 /* FirstViewController.m in Sources */, + 230DCF3715D1A2BF008CF3E2 /* KissViewController.m in Sources */, + 230DCF4315D1BE3C008CF3E2 /* PushUpsViewControllerViewController.m in Sources */, + 230DCF4615D1C3E5008CF3E2 /* YourPushUpsViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 230DCF2215D1A2BF008CF3E2 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 230DCF2315D1A2BF008CF3E2 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + 230DCF2B15D1A2BF008CF3E2 /* MainStoryboard.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 230DCF2C15D1A2BF008CF3E2 /* en */, + ); + name = MainStoryboard.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 230DCF3C15D1A2BF008CF3E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "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; + }; + 230DCF3D15D1A2BF008CF3E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + "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; + }; + 230DCF3F15D1A2BF008CF3E2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "PushUps/PushUps-Prefix.pch"; + INFOPLIST_FILE = "PushUps/PushUps-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 230DCF4015D1A2BF008CF3E2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "PushUps/PushUps-Prefix.pch"; + INFOPLIST_FILE = "PushUps/PushUps-Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 5.0; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 230DCF0F15D1A2BF008CF3E2 /* Build configuration list for PBXProject "PushUps" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 230DCF3C15D1A2BF008CF3E2 /* Debug */, + 230DCF3D15D1A2BF008CF3E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 230DCF3E15D1A2BF008CF3E2 /* Build configuration list for PBXNativeTarget "PushUps" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 230DCF3F15D1A2BF008CF3E2 /* Debug */, + 230DCF4015D1A2BF008CF3E2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 230DCF0C15D1A2BF008CF3E2 /* Project object */; +} diff --git a/PushUps.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/PushUps.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..d53c981 --- /dev/null +++ b/PushUps.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/PushUps.xcodeproj/project.xcworkspace/xcuserdata/galiro.xcuserdatad/UserInterfaceState.xcuserstate b/PushUps.xcodeproj/project.xcworkspace/xcuserdata/galiro.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..7693d44 Binary files /dev/null and b/PushUps.xcodeproj/project.xcworkspace/xcuserdata/galiro.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist b/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist new file mode 100644 index 0000000..cc2c30e --- /dev/null +++ b/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist @@ -0,0 +1,20 @@ + + + + + + + diff --git a/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcschemes/PushUps.xcscheme b/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcschemes/PushUps.xcscheme new file mode 100644 index 0000000..144ab62 --- /dev/null +++ b/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcschemes/PushUps.xcscheme @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcschemes/xcschememanagement.plist b/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..8d0bf76 --- /dev/null +++ b/PushUps.xcodeproj/xcuserdata/galiro.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + PushUps.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 230DCF1415D1A2BF008CF3E2 + + primary + + + + + diff --git a/PushUps/AppDelegate.h b/PushUps/AppDelegate.h new file mode 100644 index 0000000..a309584 --- /dev/null +++ b/PushUps/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/PushUps/AppDelegate.m b/PushUps/AppDelegate.m new file mode 100644 index 0000000..a7ca67f --- /dev/null +++ b/PushUps/AppDelegate.m @@ -0,0 +1,55 @@ +// +// AppDelegate.m +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import "AppDelegate.h" + +@implementation AppDelegate + +@synthesize window = _window; + +- (void)dealloc +{ + [_window release]; + [super dealloc]; +} + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + [UIApplication sharedApplication].statusBarHidden = YES; + 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/PushUps/FirstViewController.h b/PushUps/FirstViewController.h new file mode 100644 index 0000000..9a70dae --- /dev/null +++ b/PushUps/FirstViewController.h @@ -0,0 +1,13 @@ +// +// FirstViewController.h +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import + +@interface FirstViewController : UIViewController + +@end diff --git a/PushUps/FirstViewController.m b/PushUps/FirstViewController.m new file mode 100644 index 0000000..a4b047f --- /dev/null +++ b/PushUps/FirstViewController.m @@ -0,0 +1,34 @@ +// +// FirstViewController.m +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import "FirstViewController.h" + +@interface FirstViewController () + +@end + +@implementation FirstViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)viewDidUnload +{ + [super viewDidUnload]; + // Release any retained subviews of the main view. +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); +} + +@end diff --git a/PushUps/KissViewController.h b/PushUps/KissViewController.h new file mode 100644 index 0000000..02742ee --- /dev/null +++ b/PushUps/KissViewController.h @@ -0,0 +1,17 @@ +// +// SecondViewController.h +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import + +@interface KissViewController : UIViewController{ + int pushUps; +} + +@property (retain, nonatomic) IBOutlet UIButton *pushUpButton; +@property (retain, nonatomic) IBOutlet UILabel *pushUpOutput; +@end diff --git a/PushUps/KissViewController.m b/PushUps/KissViewController.m new file mode 100644 index 0000000..db3e533 --- /dev/null +++ b/PushUps/KissViewController.m @@ -0,0 +1,58 @@ +// +// SecondViewController.m +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import "KissViewController.h" + +@interface KissViewController () + +@end + +@implementation KissViewController +@synthesize pushUpButton; +@synthesize pushUpOutput; + +- (void)viewDidLoad +{ + pushUps = 0; + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)viewDidUnload +{ + [self setPushUpButton:nil]; + [self setPushUpOutput:nil]; + [super viewDidUnload]; + // Release any retained subviews of the main view. +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); +} +-(IBAction)justKissed:(id)sender{ + pushUps++; + pushUpOutput.text = [NSString stringWithFormat:@"%i",pushUps]; +} + +-(IBAction)saveButton:(id)sender{ + [self savePushUps:pushUps]; +} +-(void)savePushUps: (int)amount{ + + NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; + [prefs setInteger:amount forKey:@"score"]; + [prefs synchronize]; +} + +- (void)dealloc { + [pushUpButton release]; + [pushUpOutput release]; + [super dealloc]; +} +@end diff --git a/PushUps/PushUps-Info.plist b/PushUps/PushUps-Info.plist new file mode 100644 index 0000000..f34383a --- /dev/null +++ b/PushUps/PushUps-Info.plist @@ -0,0 +1,53 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIcons + + CFBundlePrimaryIcon + + CFBundleIconFiles + + pushUpSmall.png + pushUpBig.png + Default.png + Default@2x.png + + + + CFBundleIdentifier + com.galiro.Push-Ups- + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.5 + CFBundleSignature + ???? + CFBundleVersion + 1.5 + LSRequiresIPhoneOS + + UIMainStoryboardFile + MainStoryboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/PushUps/PushUps-Prefix.pch b/PushUps/PushUps-Prefix.pch new file mode 100644 index 0000000..3acd8d1 --- /dev/null +++ b/PushUps/PushUps-Prefix.pch @@ -0,0 +1,14 @@ +// +// Prefix header for all source files of the 'PushUps' target in the 'PushUps' project +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/PushUps/PushUpsViewControllerViewController.h b/PushUps/PushUpsViewControllerViewController.h new file mode 100644 index 0000000..690afdc --- /dev/null +++ b/PushUps/PushUpsViewControllerViewController.h @@ -0,0 +1,22 @@ +// +// PushUpsViewControllerViewController.h +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import + +@interface PushUpsViewControllerViewController : UIViewController{ + int pushUpAmount; + int highest; + int lowest; +} + + +@property (retain, nonatomic) IBOutlet UILabel *pushUpOutput; +@property (retain, nonatomic) IBOutlet UIButton *startButton; +@property (retain, nonatomic) IBOutlet UIButton *stopButton; + +@end diff --git a/PushUps/PushUpsViewControllerViewController.m b/PushUps/PushUpsViewControllerViewController.m new file mode 100644 index 0000000..eae6d26 --- /dev/null +++ b/PushUps/PushUpsViewControllerViewController.m @@ -0,0 +1,106 @@ +// +// PushUpsViewControllerViewController.m +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import "PushUpsViewControllerViewController.h" + +@interface PushUpsViewControllerViewController () + +@end + +@implementation PushUpsViewControllerViewController +@synthesize pushUpOutput; +@synthesize startButton; +@synthesize stopButton; + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + // Custom initialization + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sensorStateChange:) + name:@"UIDeviceProximityStateDidChangeNotification" object:nil]; +} + +-(void)sensorStateChange:(NSNotificationCenter *)notification{ + + if ([[UIDevice currentDevice] proximityState] == TRUE) { + NSLog(@"A PUSH UP WAS JUST DONE"); + pushUpAmount++; + pushUpOutput.text = [NSString stringWithFormat:@"%i",pushUpAmount]; + } else { + NSLog(@"NOTHING WAS DONE...TRY MOVING CLOSER"); + } + +} +- (IBAction)startButton:(id)sender { + [[UIDevice currentDevice] setProximityMonitoringEnabled:YES]; + +} +- (IBAction)stopButton:(id)sender{ + + [[UIDevice currentDevice] setProximityMonitoringEnabled:NO]; + + if (pushUpAmount > highest) { + [self saveHighest]; + [self savePushUps:pushUpAmount]; + + } else if (pushUpAmount < highest && pushUpAmount < lowest) { + + [self saveLowest]; + [self savePushUps:pushUpAmount]; + } + +} + +-(void)savePushUps: (int)amount{ + + NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; + [prefs setInteger:amount forKey:@"score"]; + + [prefs synchronize]; +} +-(void)saveHighest{ + NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; + [prefs setInteger:highest forKey:@"highest"]; + [prefs synchronize]; +} +-(void)saveLowest{ + NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults]; + [prefs setInteger:lowest forKey:@"lowest"]; + [prefs synchronize]; +} + + +- (void)viewDidUnload +{ + [self setPushUpOutput:nil]; + [self setStartButton:nil]; + [self setStopButton:nil]; + [super viewDidUnload]; + // Release any retained subviews of the main view. +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return NO; +} + +- (void)dealloc { + [pushUpOutput release]; + [startButton release]; + [stopButton release]; + [super dealloc]; +} +@end diff --git a/PushUps/YourPushUpsViewController.h b/PushUps/YourPushUpsViewController.h new file mode 100644 index 0000000..6d342a3 --- /dev/null +++ b/PushUps/YourPushUpsViewController.h @@ -0,0 +1,22 @@ +// +// YourPushUpsViewController.h +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import +#import +#import + +@interface YourPushUpsViewController : UIViewController{ + int loadedScore; + int lowest; + int highest; +} +@property (retain, nonatomic) IBOutlet UILabel *lastTimeLabel; +@property (retain, nonatomic) IBOutlet UILabel *lowestLabel; +@property (retain, nonatomic) IBOutlet UILabel *highestLabel; + +@end diff --git a/PushUps/YourPushUpsViewController.m b/PushUps/YourPushUpsViewController.m new file mode 100644 index 0000000..2000bdb --- /dev/null +++ b/PushUps/YourPushUpsViewController.m @@ -0,0 +1,112 @@ +// +// YourPushUpsViewController.m +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import "YourPushUpsViewController.h" + +@interface YourPushUpsViewController () + +@end + +@implementation YourPushUpsViewController + +@synthesize lastTimeLabel; +@synthesize lowestLabel; +@synthesize highestLabel; + +- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil +{ + self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; + if (self) { + [self loadPushUps]; + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + [self loadPushUps]; + // Do any additional setup after loading the view. +} + +-(void)loadPushUps{ + NSUserDefaults *defualts = [NSUserDefaults standardUserDefaults]; + loadedScore = [defualts integerForKey:@"score"]; + lowest = [defualts integerForKey:@"lowest"]; + highest = [defualts integerForKey:@"highest"]; + + lastTimeLabel.text = [NSString stringWithFormat:@"%i",loadedScore]; + lowestLabel.text = [NSString stringWithFormat:@"%i",lowest]; + highestLabel.text = [NSString stringWithFormat:@"%i",highest]; + +} + + + +- (IBAction)sendPushUpTweet:(id)sender { + // Set up the built-in twitter composition view controller. + TWTweetComposeViewController *tweetViewController = [[TWTweetComposeViewController alloc] init]; + + NSUserDefaults *defualts = [NSUserDefaults standardUserDefaults]; + loadedScore = [defualts integerForKey:@"score"]; + + + // Set the initial tweet text. See the framework for additional properties that can be set. + [tweetViewController setInitialText:[NSString stringWithFormat:@"I just did %i pushups with the Push Ups+ App :) You can get it here: http://goo.gl/I9sfA #GaliroROCKS", loadedScore]]; + + + // Create the completion handler block. + [tweetViewController setCompletionHandler:^(TWTweetComposeViewControllerResult result) { + NSString *output; + + switch (result) { + case TWTweetComposeViewControllerResultCancelled: + // The cancel button was tapped. + output = @"Tweet cancelled."; + break; + case TWTweetComposeViewControllerResultDone: + // The tweet was sent. + output = @"Tweet was sent!"; + break; + default: + break; + } + + // [self performSelectorOnMainThread:@selector(displayText:) withObject:output waitUntilDone:NO]; + + // Dismiss the tweet composition view controller. + [self dismissModalViewControllerAnimated:YES]; + }]; + + // Present the tweet composition view controller modally. + [self presentModalViewController:tweetViewController animated:YES]; +} + + +- (void)viewDidUnload +{ + [self setLastTimeLabel:nil]; + //[self setlowestLabel:nil]; + [self setLowestLabel:nil]; + [self setHighestLabel:nil]; + [super viewDidUnload]; + // Release any retained subviews of the main view. +} + +- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation +{ + return (interfaceOrientation == UIInterfaceOrientationPortrait); +} + +- (void)dealloc { + [lastTimeLabel release]; + [lowestLabel release]; + [highestLabel release]; + [super dealloc]; +} +@end diff --git a/PushUps/en.lproj/InfoPlist.strings b/PushUps/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/PushUps/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/PushUps/en.lproj/MainStoryboard.storyboard b/PushUps/en.lproj/MainStoryboard.storyboard new file mode 100644 index 0000000..77a0ada --- /dev/null +++ b/PushUps/en.lproj/MainStoryboard.storyboard @@ -0,0 +1,446 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PushUps/first.png b/PushUps/first.png new file mode 100644 index 0000000..9300ee2 Binary files /dev/null and b/PushUps/first.png differ diff --git a/PushUps/first@2x.png b/PushUps/first@2x.png new file mode 100644 index 0000000..374d78e Binary files /dev/null and b/PushUps/first@2x.png differ diff --git a/PushUps/main.m b/PushUps/main.m new file mode 100644 index 0000000..b52d0e8 --- /dev/null +++ b/PushUps/main.m @@ -0,0 +1,18 @@ +// +// main.m +// PushUps +// +// Created by Bob on 8/7/12. +// Copyright (c) 2012 __MyCompanyName__. All rights reserved. +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/PushUps/second.png b/PushUps/second.png new file mode 100644 index 0000000..1100b48 Binary files /dev/null and b/PushUps/second.png differ diff --git a/PushUps/second@2x.png b/PushUps/second@2x.png new file mode 100644 index 0000000..368d38f Binary files /dev/null and b/PushUps/second@2x.png differ diff --git a/pushUpBig.png b/pushUpBig.png new file mode 100644 index 0000000..1380cea Binary files /dev/null and b/pushUpBig.png differ diff --git a/pushUpSmall.png b/pushUpSmall.png new file mode 100644 index 0000000..fac6ef5 Binary files /dev/null and b/pushUpSmall.png differ