Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adds demo project

  • Loading branch information...
commit 07a74243937c3e40ff301a476fc1d6063c22e405 1 parent 8397169
@andrewroycarter authored
View
358 ACTimeScrollerDemo/ACTimeScrollerDemo.xcodeproj/project.pbxproj
@@ -0,0 +1,358 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 229FB19A172DD63F0059FAFB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 229FB199172DD63F0059FAFB /* UIKit.framework */; };
+ 229FB19C172DD63F0059FAFB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 229FB19B172DD63F0059FAFB /* Foundation.framework */; };
+ 229FB19E172DD6400059FAFB /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 229FB19D172DD6400059FAFB /* CoreGraphics.framework */; };
+ 229FB1A4172DD6400059FAFB /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1A2172DD6400059FAFB /* InfoPlist.strings */; };
+ 229FB1A6172DD6400059FAFB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 229FB1A5172DD6400059FAFB /* main.m */; };
+ 229FB1AA172DD6400059FAFB /* PSAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 229FB1A9172DD6400059FAFB /* PSAppDelegate.m */; };
+ 229FB1AC172DD6400059FAFB /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1AB172DD6400059FAFB /* Default.png */; };
+ 229FB1AE172DD6400059FAFB /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1AD172DD6400059FAFB /* Default@2x.png */; };
+ 229FB1B0172DD6400059FAFB /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1AF172DD6400059FAFB /* Default-568h@2x.png */; };
+ 229FB1BB172DD66B0059FAFB /* ACTimeScroller.m in Sources */ = {isa = PBXBuildFile; fileRef = 229FB1BA172DD66B0059FAFB /* ACTimeScroller.m */; };
+ 229FB1C3172DD6770059FAFB /* timescroll_hourhand.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1BD172DD6770059FAFB /* timescroll_hourhand.png */; };
+ 229FB1C4172DD6770059FAFB /* timescroll_hourhand@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1BE172DD6770059FAFB /* timescroll_hourhand@2x.png */; };
+ 229FB1C5172DD6770059FAFB /* timescroll_minutehand.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1BF172DD6770059FAFB /* timescroll_minutehand.png */; };
+ 229FB1C6172DD6770059FAFB /* timescroll_minutehand@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1C0172DD6770059FAFB /* timescroll_minutehand@2x.png */; };
+ 229FB1C7172DD6770059FAFB /* timescroll_pointer.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1C1172DD6770059FAFB /* timescroll_pointer.png */; };
+ 229FB1C8172DD6770059FAFB /* timescroll_pointer@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 229FB1C2172DD6770059FAFB /* timescroll_pointer@2x.png */; };
+ 229FB1CC172DD6960059FAFB /* PSRootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 229FB1CB172DD6960059FAFB /* PSRootViewController.m */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 229FB196172DD63F0059FAFB /* ACTimeScrollerDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ACTimeScrollerDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 229FB199172DD63F0059FAFB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 229FB19B172DD63F0059FAFB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 229FB19D172DD6400059FAFB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 229FB1A1172DD6400059FAFB /* ACTimeScrollerDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ACTimeScrollerDemo-Info.plist"; sourceTree = "<group>"; };
+ 229FB1A3172DD6400059FAFB /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 229FB1A5172DD6400059FAFB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 229FB1A7172DD6400059FAFB /* ACTimeScrollerDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ACTimeScrollerDemo-Prefix.pch"; sourceTree = "<group>"; };
+ 229FB1A8172DD6400059FAFB /* PSAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PSAppDelegate.h; sourceTree = "<group>"; };
+ 229FB1A9172DD6400059FAFB /* PSAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PSAppDelegate.m; sourceTree = "<group>"; };
+ 229FB1AB172DD6400059FAFB /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ 229FB1AD172DD6400059FAFB /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+ 229FB1AF172DD6400059FAFB /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+ 229FB1B9172DD66B0059FAFB /* ACTimeScroller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ACTimeScroller.h; sourceTree = "<group>"; };
+ 229FB1BA172DD66B0059FAFB /* ACTimeScroller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ACTimeScroller.m; sourceTree = "<group>"; };
+ 229FB1BD172DD6770059FAFB /* timescroll_hourhand.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = timescroll_hourhand.png; sourceTree = "<group>"; };
+ 229FB1BE172DD6770059FAFB /* timescroll_hourhand@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "timescroll_hourhand@2x.png"; sourceTree = "<group>"; };
+ 229FB1BF172DD6770059FAFB /* timescroll_minutehand.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = timescroll_minutehand.png; sourceTree = "<group>"; };
+ 229FB1C0172DD6770059FAFB /* timescroll_minutehand@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "timescroll_minutehand@2x.png"; sourceTree = "<group>"; };
+ 229FB1C1172DD6770059FAFB /* timescroll_pointer.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = timescroll_pointer.png; sourceTree = "<group>"; };
+ 229FB1C2172DD6770059FAFB /* timescroll_pointer@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "timescroll_pointer@2x.png"; sourceTree = "<group>"; };
+ 229FB1CA172DD6960059FAFB /* PSRootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PSRootViewController.h; sourceTree = "<group>"; };
+ 229FB1CB172DD6960059FAFB /* PSRootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PSRootViewController.m; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 229FB193172DD63F0059FAFB /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 229FB19A172DD63F0059FAFB /* UIKit.framework in Frameworks */,
+ 229FB19C172DD63F0059FAFB /* Foundation.framework in Frameworks */,
+ 229FB19E172DD6400059FAFB /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 229FB18D172DD63F0059FAFB = {
+ isa = PBXGroup;
+ children = (
+ 229FB19F172DD6400059FAFB /* ACTimeScrollerDemo */,
+ 229FB198172DD63F0059FAFB /* Frameworks */,
+ 229FB197172DD63F0059FAFB /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 229FB197172DD63F0059FAFB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB196172DD63F0059FAFB /* ACTimeScrollerDemo.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 229FB198172DD63F0059FAFB /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB199172DD63F0059FAFB /* UIKit.framework */,
+ 229FB19B172DD63F0059FAFB /* Foundation.framework */,
+ 229FB19D172DD6400059FAFB /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 229FB19F172DD6400059FAFB /* ACTimeScrollerDemo */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB1C9172DD6800059FAFB /* PSRootViewController */,
+ 229FB1BC172DD6770059FAFB /* Assets */,
+ 229FB1B8172DD66B0059FAFB /* ACTimeScroller */,
+ 229FB1B6172DD6470059FAFB /* PSAppDelegate */,
+ 229FB1A0172DD6400059FAFB /* Supporting Files */,
+ );
+ path = ACTimeScrollerDemo;
+ sourceTree = "<group>";
+ };
+ 229FB1A0172DD6400059FAFB /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB1A1172DD6400059FAFB /* ACTimeScrollerDemo-Info.plist */,
+ 229FB1A2172DD6400059FAFB /* InfoPlist.strings */,
+ 229FB1A5172DD6400059FAFB /* main.m */,
+ 229FB1A7172DD6400059FAFB /* ACTimeScrollerDemo-Prefix.pch */,
+ 229FB1AB172DD6400059FAFB /* Default.png */,
+ 229FB1AD172DD6400059FAFB /* Default@2x.png */,
+ 229FB1AF172DD6400059FAFB /* Default-568h@2x.png */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ 229FB1B6172DD6470059FAFB /* PSAppDelegate */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB1A8172DD6400059FAFB /* PSAppDelegate.h */,
+ 229FB1A9172DD6400059FAFB /* PSAppDelegate.m */,
+ );
+ name = PSAppDelegate;
+ sourceTree = "<group>";
+ };
+ 229FB1B8172DD66B0059FAFB /* ACTimeScroller */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB1B9172DD66B0059FAFB /* ACTimeScroller.h */,
+ 229FB1BA172DD66B0059FAFB /* ACTimeScroller.m */,
+ );
+ name = ACTimeScroller;
+ path = ../../ACTimeScroller;
+ sourceTree = "<group>";
+ };
+ 229FB1BC172DD6770059FAFB /* Assets */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB1BD172DD6770059FAFB /* timescroll_hourhand.png */,
+ 229FB1BE172DD6770059FAFB /* timescroll_hourhand@2x.png */,
+ 229FB1BF172DD6770059FAFB /* timescroll_minutehand.png */,
+ 229FB1C0172DD6770059FAFB /* timescroll_minutehand@2x.png */,
+ 229FB1C1172DD6770059FAFB /* timescroll_pointer.png */,
+ 229FB1C2172DD6770059FAFB /* timescroll_pointer@2x.png */,
+ );
+ name = Assets;
+ path = ../../Assets;
+ sourceTree = "<group>";
+ };
+ 229FB1C9172DD6800059FAFB /* PSRootViewController */ = {
+ isa = PBXGroup;
+ children = (
+ 229FB1CA172DD6960059FAFB /* PSRootViewController.h */,
+ 229FB1CB172DD6960059FAFB /* PSRootViewController.m */,
+ );
+ name = PSRootViewController;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 229FB195172DD63F0059FAFB /* ACTimeScrollerDemo */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 229FB1B3172DD6400059FAFB /* Build configuration list for PBXNativeTarget "ACTimeScrollerDemo" */;
+ buildPhases = (
+ 229FB192172DD63F0059FAFB /* Sources */,
+ 229FB193172DD63F0059FAFB /* Frameworks */,
+ 229FB194172DD63F0059FAFB /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = ACTimeScrollerDemo;
+ productName = ACTimeScrollerDemo;
+ productReference = 229FB196172DD63F0059FAFB /* ACTimeScrollerDemo.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 229FB18E172DD63F0059FAFB /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ CLASSPREFIX = PS;
+ LastUpgradeCheck = 0460;
+ ORGANIZATIONNAME = "Pinch Studios";
+ };
+ buildConfigurationList = 229FB191172DD63F0059FAFB /* Build configuration list for PBXProject "ACTimeScrollerDemo" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 229FB18D172DD63F0059FAFB;
+ productRefGroup = 229FB197172DD63F0059FAFB /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 229FB195172DD63F0059FAFB /* ACTimeScrollerDemo */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 229FB194172DD63F0059FAFB /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 229FB1A4172DD6400059FAFB /* InfoPlist.strings in Resources */,
+ 229FB1AC172DD6400059FAFB /* Default.png in Resources */,
+ 229FB1AE172DD6400059FAFB /* Default@2x.png in Resources */,
+ 229FB1B0172DD6400059FAFB /* Default-568h@2x.png in Resources */,
+ 229FB1C3172DD6770059FAFB /* timescroll_hourhand.png in Resources */,
+ 229FB1C4172DD6770059FAFB /* timescroll_hourhand@2x.png in Resources */,
+ 229FB1C5172DD6770059FAFB /* timescroll_minutehand.png in Resources */,
+ 229FB1C6172DD6770059FAFB /* timescroll_minutehand@2x.png in Resources */,
+ 229FB1C7172DD6770059FAFB /* timescroll_pointer.png in Resources */,
+ 229FB1C8172DD6770059FAFB /* timescroll_pointer@2x.png in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 229FB192172DD63F0059FAFB /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 229FB1A6172DD6400059FAFB /* main.m in Sources */,
+ 229FB1AA172DD6400059FAFB /* PSAppDelegate.m in Sources */,
+ 229FB1BB172DD66B0059FAFB /* ACTimeScroller.m in Sources */,
+ 229FB1CC172DD6960059FAFB /* PSRootViewController.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 229FB1A2172DD6400059FAFB /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 229FB1A3172DD6400059FAFB /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 229FB1B1172DD6400059FAFB /* 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;
+ };
+ 229FB1B2172DD6400059FAFB /* 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;
+ };
+ 229FB1B4172DD6400059FAFB /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "ACTimeScrollerDemo/ACTimeScrollerDemo-Prefix.pch";
+ INFOPLIST_FILE = "ACTimeScrollerDemo/ACTimeScrollerDemo-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 229FB1B5172DD6400059FAFB /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "ACTimeScrollerDemo/ACTimeScrollerDemo-Prefix.pch";
+ INFOPLIST_FILE = "ACTimeScrollerDemo/ACTimeScrollerDemo-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 229FB191172DD63F0059FAFB /* Build configuration list for PBXProject "ACTimeScrollerDemo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 229FB1B1172DD6400059FAFB /* Debug */,
+ 229FB1B2172DD6400059FAFB /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 229FB1B3172DD6400059FAFB /* Build configuration list for PBXNativeTarget "ACTimeScrollerDemo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 229FB1B4172DD6400059FAFB /* Debug */,
+ 229FB1B5172DD6400059FAFB /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 229FB18E172DD63F0059FAFB /* Project object */;
+}
View
38 ACTimeScrollerDemo/ACTimeScrollerDemo/ACTimeScrollerDemo-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.pinchstudios.${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 ACTimeScrollerDemo/ACTimeScrollerDemo/ACTimeScrollerDemo-Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'ACTimeScrollerDemo' target in the 'ACTimeScrollerDemo' 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
BIN  ACTimeScrollerDemo/ACTimeScrollerDemo/Default-568h@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  ACTimeScrollerDemo/ACTimeScrollerDemo/Default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  ACTimeScrollerDemo/ACTimeScrollerDemo/Default@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
15 ACTimeScrollerDemo/ACTimeScrollerDemo/PSAppDelegate.h
@@ -0,0 +1,15 @@
+//
+// PSAppDelegate.h
+// ACTimeScrollerDemo
+//
+// Created by Andrew Carter on 4/28/13.
+// Copyright (c) 2013 Pinch Studios. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface PSAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
View
26 ACTimeScrollerDemo/ACTimeScrollerDemo/PSAppDelegate.m
@@ -0,0 +1,26 @@
+//
+// PSAppDelegate.m
+// ACTimeScrollerDemo
+//
+// Created by Andrew Carter on 4/28/13.
+// Copyright (c) 2013 Pinch Studios. All rights reserved.
+//
+
+#import "PSAppDelegate.h"
+
+#import "PSRootViewController.h"
+
+@implementation PSAppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+
+ PSRootViewController *rootViewController = [[PSRootViewController alloc] initWithStyle:UITableViewStylePlain];
+ [[self window] setRootViewController:rootViewController];
+
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+@end
View
13 ACTimeScrollerDemo/ACTimeScrollerDemo/PSRootViewController.h
@@ -0,0 +1,13 @@
+//
+// PSRootViewController.h
+// ACTimeScrollerDemo
+//
+// Created by Andrew Carter on 4/28/13.
+// Copyright (c) 2013 Pinch Studios. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface PSRootViewController : UITableViewController
+
+@end
View
119 ACTimeScrollerDemo/ACTimeScrollerDemo/PSRootViewController.m
@@ -0,0 +1,119 @@
+//
+// PSRootViewController.m
+// ACTimeScrollerDemo
+//
+// Created by Andrew Carter on 4/28/13.
+// Copyright (c) 2013 Pinch Studios. All rights reserved.
+//
+
+#import "PSRootViewController.h"
+
+#import "ACTimeScroller.h"
+
+NSString * const PSTableViewCellIdentifier = @"PSTableViewCellIdentifier";
+
+@interface PSRootViewController () <ACTimeScrollerDelegate>
+{
+ NSMutableArray *_datasource;
+ ACTimeScroller *_timeScroller;
+}
+
+@end
+
+@implementation PSRootViewController
+
+#pragma mark - UITableViewController Overrides
+
+- (id)initWithStyle:(UITableViewStyle)style
+{
+ self = [super initWithStyle:style];
+ if (self)
+ {
+ [self setupDatasource];
+ }
+ return self;
+}
+
+- (void)viewDidLoad
+{
+ _timeScroller = [[ACTimeScroller alloc] initWithDelegate:self];
+ [[self tableView] registerClass:[UITableViewCell class] forCellReuseIdentifier:PSTableViewCellIdentifier];
+}
+
+#pragma mark - Instance Methods
+
+- (void)setupDatasource
+{
+ _datasource = [NSMutableArray new];
+
+ NSCalendar *calendar = [NSCalendar currentCalendar];
+ NSDateComponents *components = [[NSDateComponents alloc] init];
+ NSDate *today = [NSDate date];
+ NSDateComponents *todayComponents = [calendar components:NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit fromDate:today];
+
+ for (int i = [todayComponents day]; i >= -15; i--)
+ {
+ [components setYear:[todayComponents year]];
+ [components setMonth:[todayComponents month]];
+ [components setDay:i];
+ [components setHour:arc4random() % 23];
+ [components setMinute:arc4random() % 59];
+
+ NSDate *date = [calendar dateFromComponents:components];
+ [_datasource addObject:date];
+ }
+}
+
+#pragma mark - ACTimeScrollerDelegate Methods
+
+- (UITableView *)tableViewForTimeScroller:(ACTimeScroller *)timeScroller
+{
+ return [self tableView];
+}
+
+- (NSDate *)timeScroller:(ACTimeScroller *)timeScroller dateForCell:(UITableViewCell *)cell
+{
+ NSIndexPath *indexPath = [[self tableView] indexPathForCell:cell];
+ return _datasource[[indexPath row]];
+}
+
+#pragma mark - UITableViewDatasource Methods
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:PSTableViewCellIdentifier];
+
+ NSDate *date = _datasource[[indexPath row]];
+ [[cell textLabel] setText:[date description]];
+
+ return cell;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
+ return [_datasource count];
+}
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+ return 1;
+}
+
+#pragma mark - UIScrollViewDelegate Methods
+
+- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
+{
+ [_timeScroller scrollViewWillBeginDragging];
+}
+
+- (void)scrollViewDidScroll:(UIScrollView *)scrollView
+{
+ [_timeScroller scrollViewDidScroll];
+}
+
+- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView
+{
+ [_timeScroller scrollViewDidEndDecelerating];
+}
+
+@end
View
2  ACTimeScrollerDemo/ACTimeScrollerDemo/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
18 ACTimeScrollerDemo/ACTimeScrollerDemo/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// ACTimeScrollerDemo
+//
+// Created by Andrew Carter on 4/28/13.
+// Copyright (c) 2013 Pinch Studios. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "PSAppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([PSAppDelegate class]));
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.