Skip to content
Browse files

Initial Commit

  • Loading branch information...
0 parents commit dbf81c167dbeed86aaf92b4d12dad41011841fd4 @ijason committed Dec 30, 2012
13 README.md
@@ -0,0 +1,13 @@
+Show Touches
+=====================
+
+**Show Touches is a sample iOS project that displays user touches and fades them out.**
+
+![Smart App Banner Chrome Example](http://ijasoneverett.com/assets/img/ShowTouches.png)
+
+## Contact
+
+Jason Everett
+
+- https://github.com/ijason
+- http://twitter.com/ijayson66
303 ShowTouches.xcodeproj/project.pbxproj
@@ -0,0 +1,303 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 9688712B1690E3BF004D86BB /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9688712A1690E3BF004D86BB /* UIKit.framework */; };
+ 9688712D1690E3BF004D86BB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9688712C1690E3BF004D86BB /* Foundation.framework */; };
+ 9688712F1690E3BF004D86BB /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9688712E1690E3BF004D86BB /* CoreGraphics.framework */; };
+ 968871351690E3BF004D86BB /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 968871331690E3BF004D86BB /* InfoPlist.strings */; };
+ 968871371690E3BF004D86BB /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 968871361690E3BF004D86BB /* main.m */; };
+ 9688713B1690E3BF004D86BB /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9688713A1690E3BF004D86BB /* AppDelegate.m */; };
+ 9688713D1690E3C0004D86BB /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 9688713C1690E3BF004D86BB /* Default.png */; };
+ 9688713F1690E3C0004D86BB /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 9688713E1690E3C0004D86BB /* Default@2x.png */; };
+ 968871411690E3C0004D86BB /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 968871401690E3C0004D86BB /* Default-568h@2x.png */; };
+ 968871441690E3C0004D86BB /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 968871421690E3C0004D86BB /* MainStoryboard.storyboard */; };
+ 968871471690E3C0004D86BB /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 968871461690E3C0004D86BB /* ViewController.m */; };
+ 9688714E1690E476004D86BB /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9688714D1690E476004D86BB /* QuartzCore.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 968871261690E3BF004D86BB /* ShowTouches.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ShowTouches.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 9688712A1690E3BF004D86BB /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 9688712C1690E3BF004D86BB /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 9688712E1690E3BF004D86BB /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 968871321690E3BF004D86BB /* ShowTouches-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ShowTouches-Info.plist"; sourceTree = "<group>"; };
+ 968871341690E3BF004D86BB /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 968871361690E3BF004D86BB /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 968871381690E3BF004D86BB /* ShowTouches-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ShowTouches-Prefix.pch"; sourceTree = "<group>"; };
+ 968871391690E3BF004D86BB /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+ 9688713A1690E3BF004D86BB /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+ 9688713C1690E3BF004D86BB /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ 9688713E1690E3C0004D86BB /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+ 968871401690E3C0004D86BB /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+ 968871431690E3C0004D86BB /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = "<group>"; };
+ 968871451690E3C0004D86BB /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
+ 968871461690E3C0004D86BB /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
+ 9688714D1690E476004D86BB /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 968871231690E3BF004D86BB /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 9688714E1690E476004D86BB /* QuartzCore.framework in Frameworks */,
+ 9688712B1690E3BF004D86BB /* UIKit.framework in Frameworks */,
+ 9688712D1690E3BF004D86BB /* Foundation.framework in Frameworks */,
+ 9688712F1690E3BF004D86BB /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9688711B1690E3BF004D86BB = {
+ isa = PBXGroup;
+ children = (
+ 968871301690E3BF004D86BB /* ShowTouches */,
+ 968871291690E3BF004D86BB /* Frameworks */,
+ 968871271690E3BF004D86BB /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 968871271690E3BF004D86BB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 968871261690E3BF004D86BB /* ShowTouches.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 968871291690E3BF004D86BB /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 9688714D1690E476004D86BB /* QuartzCore.framework */,
+ 9688712A1690E3BF004D86BB /* UIKit.framework */,
+ 9688712C1690E3BF004D86BB /* Foundation.framework */,
+ 9688712E1690E3BF004D86BB /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 968871301690E3BF004D86BB /* ShowTouches */ = {
+ isa = PBXGroup;
+ children = (
+ 968871391690E3BF004D86BB /* AppDelegate.h */,
+ 9688713A1690E3BF004D86BB /* AppDelegate.m */,
+ 968871421690E3C0004D86BB /* MainStoryboard.storyboard */,
+ 968871451690E3C0004D86BB /* ViewController.h */,
+ 968871461690E3C0004D86BB /* ViewController.m */,
+ 968871311690E3BF004D86BB /* Supporting Files */,
+ );
+ path = ShowTouches;
+ sourceTree = "<group>";
+ };
+ 968871311690E3BF004D86BB /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 968871321690E3BF004D86BB /* ShowTouches-Info.plist */,
+ 968871331690E3BF004D86BB /* InfoPlist.strings */,
+ 968871361690E3BF004D86BB /* main.m */,
+ 968871381690E3BF004D86BB /* ShowTouches-Prefix.pch */,
+ 9688713C1690E3BF004D86BB /* Default.png */,
+ 9688713E1690E3C0004D86BB /* Default@2x.png */,
+ 968871401690E3C0004D86BB /* Default-568h@2x.png */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 968871251690E3BF004D86BB /* ShowTouches */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 9688714A1690E3C0004D86BB /* Build configuration list for PBXNativeTarget "ShowTouches" */;
+ buildPhases = (
+ 968871221690E3BF004D86BB /* Sources */,
+ 968871231690E3BF004D86BB /* Frameworks */,
+ 968871241690E3BF004D86BB /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = ShowTouches;
+ productName = ShowTouches;
+ productReference = 968871261690E3BF004D86BB /* ShowTouches.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 9688711D1690E3BF004D86BB /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 0450;
+ ORGANIZATIONNAME = "JASON EVERETT";
+ };
+ buildConfigurationList = 968871201690E3BF004D86BB /* Build configuration list for PBXProject "ShowTouches" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 9688711B1690E3BF004D86BB;
+ productRefGroup = 968871271690E3BF004D86BB /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 968871251690E3BF004D86BB /* ShowTouches */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 968871241690E3BF004D86BB /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 968871351690E3BF004D86BB /* InfoPlist.strings in Resources */,
+ 9688713D1690E3C0004D86BB /* Default.png in Resources */,
+ 9688713F1690E3C0004D86BB /* Default@2x.png in Resources */,
+ 968871411690E3C0004D86BB /* Default-568h@2x.png in Resources */,
+ 968871441690E3C0004D86BB /* MainStoryboard.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 968871221690E3BF004D86BB /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 968871371690E3BF004D86BB /* main.m in Sources */,
+ 9688713B1690E3BF004D86BB /* AppDelegate.m in Sources */,
+ 968871471690E3C0004D86BB /* ViewController.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 968871331690E3BF004D86BB /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 968871341690E3BF004D86BB /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 968871421690E3C0004D86BB /* MainStoryboard.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 968871431690E3C0004D86BB /* en */,
+ );
+ name = MainStoryboard.storyboard;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 968871481690E3C0004D86BB /* 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_EMPTY_BODY = 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.0;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ 968871491690E3C0004D86BB /* 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_EMPTY_BODY = 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.0;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 9688714B1690E3C0004D86BB /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "ShowTouches/ShowTouches-Prefix.pch";
+ INFOPLIST_FILE = "ShowTouches/ShowTouches-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 9688714C1690E3C0004D86BB /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "ShowTouches/ShowTouches-Prefix.pch";
+ INFOPLIST_FILE = "ShowTouches/ShowTouches-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 968871201690E3BF004D86BB /* Build configuration list for PBXProject "ShowTouches" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 968871481690E3C0004D86BB /* Debug */,
+ 968871491690E3C0004D86BB /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 9688714A1690E3C0004D86BB /* Build configuration list for PBXNativeTarget "ShowTouches" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 9688714B1690E3C0004D86BB /* Debug */,
+ 9688714C1690E3C0004D86BB /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 9688711D1690E3BF004D86BB /* Project object */;
+}
7 ShowTouches.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:ShowTouches.xcodeproj">
+ </FileRef>
+</Workspace>
BIN ...xcodeproj/project.xcworkspace/xcuserdata/Jason.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
5 ShowTouches.xcodeproj/xcuserdata/Jason.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Bucket
+ type = "1"
+ version = "1.0">
+</Bucket>
86 ShowTouches.xcodeproj/xcuserdata/Jason.xcuserdatad/xcschemes/ShowTouches.xcscheme
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Scheme
+ LastUpgradeVersion = "0450"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
+ <BuildActionEntries>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "YES"
+ buildForProfiling = "YES"
+ buildForArchiving = "YES"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "968871251690E3BF004D86BB"
+ BuildableName = "ShowTouches.app"
+ BlueprintName = "ShowTouches"
+ ReferencedContainer = "container:ShowTouches.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 = "968871251690E3BF004D86BB"
+ BuildableName = "ShowTouches.app"
+ BlueprintName = "ShowTouches"
+ ReferencedContainer = "container:ShowTouches.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 = "968871251690E3BF004D86BB"
+ BuildableName = "ShowTouches.app"
+ BlueprintName = "ShowTouches"
+ ReferencedContainer = "container:ShowTouches.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ <AdditionalOptions>
+ </AdditionalOptions>
+ </LaunchAction>
+ <ProfileAction
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ buildConfiguration = "Release"
+ debugDocumentVersioning = "YES">
+ <BuildableProductRunnable>
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "968871251690E3BF004D86BB"
+ BuildableName = "ShowTouches.app"
+ BlueprintName = "ShowTouches"
+ ReferencedContainer = "container:ShowTouches.xcodeproj">
+ </BuildableReference>
+ </BuildableProductRunnable>
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
+</Scheme>
22 ShowTouches.xcodeproj/xcuserdata/Jason.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>ShowTouches.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>968871251690E3BF004D86BB</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
15 ShowTouches/AppDelegate.h
@@ -0,0 +1,15 @@
+//
+// AppDelegate.h
+// ShowTouches
+//
+// Created by JASON EVERETT on 12/30/12.
+// Copyright (c) 2012 JASON EVERETT. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
46 ShowTouches/AppDelegate.m
@@ -0,0 +1,46 @@
+//
+// AppDelegate.m
+// ShowTouches
+//
+// Created by JASON EVERETT on 12/30/12.
+// Copyright (c) 2012 JASON EVERETT. All rights reserved.
+//
+
+#import "AppDelegate.h"
+
+@implementation AppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ // Override point for customization after application launch.
+ 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
BIN ShowTouches/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.
BIN ShowTouches/Default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN ShowTouches/Default@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 ShowTouches/ShowTouches-Info.plist
@@ -0,0 +1,40 @@
+<?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>Jason-Everett.${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>UIMainStoryboardFile</key>
+ <string>MainStoryboard</string>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
14 ShowTouches/ShowTouches-Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'ShowTouches' target in the 'ShowTouches' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_5_0
+#warning "This project uses features only available in iOS SDK 5.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
14 ShowTouches/ViewController.h
@@ -0,0 +1,14 @@
+//
+// ViewController.h
+// ShowTouches
+//
+// Created by JASON EVERETT on 12/30/12.
+// Copyright (c) 2012 JASON EVERETT. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <QuartzCore/QuartzCore.h>
+
+@interface ViewController : UIViewController
+
+@end
55 ShowTouches/ViewController.m
@@ -0,0 +1,55 @@
+//
+// ViewController.m
+// ShowTouches
+//
+// Created by JASON EVERETT on 12/30/12.
+// Copyright (c) 2012 JASON EVERETT. 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.
+}
+
+- (void)didReceiveMemoryWarning
+{
+ [super didReceiveMemoryWarning];
+ // Dispose of any resources that can be recreated.
+}
+
+-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
+ [touches enumerateObjectsUsingBlock:^(id obj, BOOL *stop) {
+ // Get a single touch and it's location
+ UITouch *touch = obj;
+ CGPoint touchPoint = [touch locationInView:self.view];
+ // Draw a red circle where the touch occurred
+ UIView *touchView = [[UIView alloc] init];
+ [touchView setBackgroundColor:[UIColor redColor]];
+ touchView.frame = CGRectMake(touchPoint.x - 15, touchPoint.y - 15, 30, 30);
+ touchView.layer.cornerRadius = 15;
+ touchView.alpha = 0.8;
+ [self.view addSubview:touchView];
+ [self fadeOutView:touchView];
+ }];
+}
+
+-(void)fadeOutView:(UIView *)myView {
+ [UIView animateWithDuration:1.0 animations:^{
+ myView.alpha = 0.8; myView.alpha = 0.0;
+ } completion:^(BOOL success) {
+ if (success) {
+ [myView removeFromSuperview];
+ }
+ }];
+}
+
+@end
2 ShowTouches/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
56 ShowTouches/en.lproj/MainStoryboard.storyboard
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2844" systemVersion="12C60" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
+ <dependencies>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1930"/>
+ </dependencies>
+ <scenes>
+ <!--View Controller-->
+ <scene sceneID="5">
+ <objects>
+ <viewController id="2" customClass="ViewController" sceneMemberID="viewController">
+ <view key="view" contentMode="scaleToFill" id="3">
+ <rect key="frame" x="0.0" y="20" width="320" height="548"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" usesAttributedText="YES" lineBreakMode="tailTruncation" numberOfLines="16" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" preferredMaxLayoutWidth="280" translatesAutoresizingMaskIntoConstraints="NO" id="Dht-P0-MiD">
+ <constraints>
+ <constraint firstAttribute="height" constant="287" id="pIt-40-5jq"/>
+ </constraints>
+ <attributedString key="attributedText">
+ <fragment>
+ <string key="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</string>
+ <attributes>
+ <color key="NSColor" cocoaTouchSystemColor="darkTextColor"/>
+ <font key="NSFont" size="17" name="Helvetica"/>
+ <paragraphStyle key="NSParagraphStyle" alignment="left" lineBreakMode="wordWrapping" baseWritingDirection="natural"/>
+ </attributes>
+ </fragment>
+ </attributedString>
+ <nil key="highlightedColor"/>
+ </label>
+ </subviews>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ <constraints>
+ <constraint firstItem="Dht-P0-MiD" firstAttribute="top" secondItem="3" secondAttribute="top" constant="20" symbolic="YES" type="default" id="0F4-bg-12R"/>
+ <constraint firstItem="Dht-P0-MiD" firstAttribute="leading" secondItem="3" secondAttribute="leading" constant="20" symbolic="YES" type="default" id="V1C-M4-06i"/>
+ </constraints>
+ </view>
+ </viewController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
+ </objects>
+ </scene>
+ </scenes>
+ <classes>
+ <class className="NSLayoutConstraint" superclassName="NSObject">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/NSLayoutConstraint.h"/>
+ </class>
+ <class className="ViewController" superclassName="UIViewController">
+ <source key="sourceIdentifier" type="project" relativePath="./Classes/ViewController.h"/>
+ </class>
+ </classes>
+ <simulatedMetricsContainer key="defaultSimulatedMetrics">
+ <simulatedStatusBarMetrics key="statusBar"/>
+ <simulatedOrientationMetrics key="orientation"/>
+ <simulatedScreenMetrics key="destination" type="retina4"/>
+ </simulatedMetricsContainer>
+</document>
18 ShowTouches/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// ShowTouches
+//
+// Created by JASON EVERETT on 12/30/12.
+// Copyright (c) 2012 JASON EVERETT. 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]));
+ }
+}

0 comments on commit dbf81c1

Please sign in to comment.
Something went wrong with that request. Please try again.