Commits

Abizer Nasir committed 292da4e

Initial project

  • Participants

Comments (0)

Files changed (15)

+# Mac OS X
+*.DS_Store
+
+# Xcode
+*.pbxuser
+*.mode1v3
+*.mode2v3
+*.perspectivev3
+*.xcuserstate
+project.xcworkspace/
+xcuserdata/
+
+# Generated files
+*.o
+*.pyc
+*.hi
+
+#Python modules
+MANIFEST
+dist/
+build/
+
+# Backup files
+*~.nib
+\#*#
+.#*

DotImage.xcodeproj/project.pbxproj

+// !$*UTF8*$!
+{
+	archiveVersion = 1;
+	classes = {
+	};
+	objectVersion = 46;
+	objects = {
+
+/* Begin PBXBuildFile section */
+		AD26ABB216C4174700B7B7DD /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD26ABB116C4174700B7B7DD /* UIKit.framework */; };
+		AD26ABB416C4174700B7B7DD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD26ABB316C4174700B7B7DD /* Foundation.framework */; };
+		AD26ABB616C4174700B7B7DD /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD26ABB516C4174700B7B7DD /* CoreGraphics.framework */; };
+		AD26ABBC16C4174700B7B7DD /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = AD26ABBA16C4174700B7B7DD /* InfoPlist.strings */; };
+		AD26ABBE16C4174700B7B7DD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = AD26ABBD16C4174700B7B7DD /* main.m */; };
+		AD26ABC216C4174700B7B7DD /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = AD26ABC116C4174700B7B7DD /* AppDelegate.m */; };
+		AD26ABC416C4174700B7B7DD /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = AD26ABC316C4174700B7B7DD /* Default.png */; };
+		AD26ABC616C4174700B7B7DD /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AD26ABC516C4174700B7B7DD /* Default@2x.png */; };
+		AD26ABC816C4174700B7B7DD /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AD26ABC716C4174700B7B7DD /* Default-568h@2x.png */; };
+		AD26ABCB16C4174700B7B7DD /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD26ABC916C4174700B7B7DD /* MainStoryboard.storyboard */; };
+		AD26ABCE16C4174700B7B7DD /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AD26ABCD16C4174700B7B7DD /* ViewController.m */; };
+		AD26ABD616C41A9300B7B7DD /* Bikes.jpg in Resources */ = {isa = PBXBuildFile; fileRef = AD26ABD516C41A9300B7B7DD /* Bikes.jpg */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+		AD26ABAE16C4174700B7B7DD /* DotImage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DotImage.app; sourceTree = BUILT_PRODUCTS_DIR; };
+		AD26ABB116C4174700B7B7DD /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+		AD26ABB316C4174700B7B7DD /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+		AD26ABB516C4174700B7B7DD /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+		AD26ABB916C4174700B7B7DD /* DotImage-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "DotImage-Info.plist"; sourceTree = "<group>"; };
+		AD26ABBB16C4174700B7B7DD /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+		AD26ABBD16C4174700B7B7DD /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+		AD26ABBF16C4174700B7B7DD /* DotImage-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "DotImage-Prefix.pch"; sourceTree = "<group>"; };
+		AD26ABC016C4174700B7B7DD /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
+		AD26ABC116C4174700B7B7DD /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
+		AD26ABC316C4174700B7B7DD /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+		AD26ABC516C4174700B7B7DD /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+		AD26ABC716C4174700B7B7DD /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+		AD26ABCA16C4174700B7B7DD /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = "<group>"; };
+		AD26ABCC16C4174700B7B7DD /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
+		AD26ABCD16C4174700B7B7DD /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
+		AD26ABD516C41A9300B7B7DD /* Bikes.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = Bikes.jpg; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+		AD26ABAB16C4174700B7B7DD /* Frameworks */ = {
+			isa = PBXFrameworksBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				AD26ABB216C4174700B7B7DD /* UIKit.framework in Frameworks */,
+				AD26ABB416C4174700B7B7DD /* Foundation.framework in Frameworks */,
+				AD26ABB616C4174700B7B7DD /* CoreGraphics.framework in Frameworks */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+		AD26ABA516C4174700B7B7DD = {
+			isa = PBXGroup;
+			children = (
+				AD26ABB716C4174700B7B7DD /* DotImage */,
+				AD26ABB016C4174700B7B7DD /* Frameworks */,
+				AD26ABAF16C4174700B7B7DD /* Products */,
+			);
+			sourceTree = "<group>";
+		};
+		AD26ABAF16C4174700B7B7DD /* Products */ = {
+			isa = PBXGroup;
+			children = (
+				AD26ABAE16C4174700B7B7DD /* DotImage.app */,
+			);
+			name = Products;
+			sourceTree = "<group>";
+		};
+		AD26ABB016C4174700B7B7DD /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+				AD26ABB116C4174700B7B7DD /* UIKit.framework */,
+				AD26ABB316C4174700B7B7DD /* Foundation.framework */,
+				AD26ABB516C4174700B7B7DD /* CoreGraphics.framework */,
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
+		AD26ABB716C4174700B7B7DD /* DotImage */ = {
+			isa = PBXGroup;
+			children = (
+				AD26ABC016C4174700B7B7DD /* AppDelegate.h */,
+				AD26ABC116C4174700B7B7DD /* AppDelegate.m */,
+				AD26ABC916C4174700B7B7DD /* MainStoryboard.storyboard */,
+				AD26ABCC16C4174700B7B7DD /* ViewController.h */,
+				AD26ABCD16C4174700B7B7DD /* ViewController.m */,
+				AD26ABB816C4174700B7B7DD /* Supporting Files */,
+			);
+			path = DotImage;
+			sourceTree = "<group>";
+		};
+		AD26ABB816C4174700B7B7DD /* Supporting Files */ = {
+			isa = PBXGroup;
+			children = (
+				AD26ABD416C41A8600B7B7DD /* images */,
+				AD26ABB916C4174700B7B7DD /* DotImage-Info.plist */,
+				AD26ABBA16C4174700B7B7DD /* InfoPlist.strings */,
+				AD26ABBD16C4174700B7B7DD /* main.m */,
+				AD26ABBF16C4174700B7B7DD /* DotImage-Prefix.pch */,
+				AD26ABC316C4174700B7B7DD /* Default.png */,
+				AD26ABC516C4174700B7B7DD /* Default@2x.png */,
+				AD26ABC716C4174700B7B7DD /* Default-568h@2x.png */,
+			);
+			name = "Supporting Files";
+			sourceTree = "<group>";
+		};
+		AD26ABD416C41A8600B7B7DD /* images */ = {
+			isa = PBXGroup;
+			children = (
+				AD26ABD516C41A9300B7B7DD /* Bikes.jpg */,
+			);
+			name = images;
+			sourceTree = "<group>";
+		};
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+		AD26ABAD16C4174700B7B7DD /* DotImage */ = {
+			isa = PBXNativeTarget;
+			buildConfigurationList = AD26ABD116C4174700B7B7DD /* Build configuration list for PBXNativeTarget "DotImage" */;
+			buildPhases = (
+				AD26ABAA16C4174700B7B7DD /* Sources */,
+				AD26ABAB16C4174700B7B7DD /* Frameworks */,
+				AD26ABAC16C4174700B7B7DD /* Resources */,
+			);
+			buildRules = (
+			);
+			dependencies = (
+			);
+			name = DotImage;
+			productName = DotImage;
+			productReference = AD26ABAE16C4174700B7B7DD /* DotImage.app */;
+			productType = "com.apple.product-type.application";
+		};
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+		AD26ABA616C4174700B7B7DD /* Project object */ = {
+			isa = PBXProject;
+			attributes = {
+				LastUpgradeCheck = 0460;
+				ORGANIZATIONNAME = "Jungle Candy Software";
+			};
+			buildConfigurationList = AD26ABA916C4174700B7B7DD /* Build configuration list for PBXProject "DotImage" */;
+			compatibilityVersion = "Xcode 3.2";
+			developmentRegion = English;
+			hasScannedForEncodings = 0;
+			knownRegions = (
+				en,
+			);
+			mainGroup = AD26ABA516C4174700B7B7DD;
+			productRefGroup = AD26ABAF16C4174700B7B7DD /* Products */;
+			projectDirPath = "";
+			projectRoot = "";
+			targets = (
+				AD26ABAD16C4174700B7B7DD /* DotImage */,
+			);
+		};
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+		AD26ABAC16C4174700B7B7DD /* Resources */ = {
+			isa = PBXResourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				AD26ABBC16C4174700B7B7DD /* InfoPlist.strings in Resources */,
+				AD26ABC416C4174700B7B7DD /* Default.png in Resources */,
+				AD26ABC616C4174700B7B7DD /* Default@2x.png in Resources */,
+				AD26ABC816C4174700B7B7DD /* Default-568h@2x.png in Resources */,
+				AD26ABCB16C4174700B7B7DD /* MainStoryboard.storyboard in Resources */,
+				AD26ABD616C41A9300B7B7DD /* Bikes.jpg in Resources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+		AD26ABAA16C4174700B7B7DD /* Sources */ = {
+			isa = PBXSourcesBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+				AD26ABBE16C4174700B7B7DD /* main.m in Sources */,
+				AD26ABC216C4174700B7B7DD /* AppDelegate.m in Sources */,
+				AD26ABCE16C4174700B7B7DD /* ViewController.m in Sources */,
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+		};
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+		AD26ABBA16C4174700B7B7DD /* InfoPlist.strings */ = {
+			isa = PBXVariantGroup;
+			children = (
+				AD26ABBB16C4174700B7B7DD /* en */,
+			);
+			name = InfoPlist.strings;
+			sourceTree = "<group>";
+		};
+		AD26ABC916C4174700B7B7DD /* MainStoryboard.storyboard */ = {
+			isa = PBXVariantGroup;
+			children = (
+				AD26ABCA16C4174700B7B7DD /* en */,
+			);
+			name = MainStoryboard.storyboard;
+			sourceTree = "<group>";
+		};
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+		AD26ABCF16C4174700B7B7DD /* 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;
+		};
+		AD26ABD016C4174700B7B7DD /* 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;
+		};
+		AD26ABD216C4174700B7B7DD /* Debug */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
+				GCC_PREFIX_HEADER = "DotImage/DotImage-Prefix.pch";
+				INFOPLIST_FILE = "DotImage/DotImage-Info.plist";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				WRAPPER_EXTENSION = app;
+			};
+			name = Debug;
+		};
+		AD26ABD316C4174700B7B7DD /* Release */ = {
+			isa = XCBuildConfiguration;
+			buildSettings = {
+				GCC_PRECOMPILE_PREFIX_HEADER = YES;
+				GCC_PREFIX_HEADER = "DotImage/DotImage-Prefix.pch";
+				INFOPLIST_FILE = "DotImage/DotImage-Info.plist";
+				PRODUCT_NAME = "$(TARGET_NAME)";
+				WRAPPER_EXTENSION = app;
+			};
+			name = Release;
+		};
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+		AD26ABA916C4174700B7B7DD /* Build configuration list for PBXProject "DotImage" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				AD26ABCF16C4174700B7B7DD /* Debug */,
+				AD26ABD016C4174700B7B7DD /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Release;
+		};
+		AD26ABD116C4174700B7B7DD /* Build configuration list for PBXNativeTarget "DotImage" */ = {
+			isa = XCConfigurationList;
+			buildConfigurations = (
+				AD26ABD216C4174700B7B7DD /* Debug */,
+				AD26ABD316C4174700B7B7DD /* Release */,
+			);
+			defaultConfigurationIsVisible = 0;
+		};
+/* End XCConfigurationList section */
+	};
+	rootObject = AD26ABA616C4174700B7B7DD /* Project object */;
+}

DotImage/AppDelegate.h

+//
+//  AppDelegate.h
+//  DotImage
+//
+//  Created by Abizer Nasir on 07/02/2013.
+//  Copyright (c) 2013 Jungle Candy Software. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface AppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end

DotImage/AppDelegate.m

+//
+//  AppDelegate.m
+//  DotImage
+//
+//  Created by Abizer Nasir on 07/02/2013.
+//  Copyright (c) 2013 Jungle Candy Software. 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

DotImage/Bikes.jpg

Added
New image

DotImage/Default-568h@2x.png

Added
New image

DotImage/Default.png

Added
New image

DotImage/Default@2x.png

Added
New image

DotImage/DotImage-Info.plist

+<?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.junglecandy.${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>
+	</array>
+</dict>
+</plist>

DotImage/DotImage-Prefix.pch

+//
+// Prefix header for all source files of the 'DotImage' target in the 'DotImage' 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

DotImage/ViewController.h

+//
+//  ViewController.h
+//  DotImage
+//
+//  Created by Abizer Nasir on 07/02/2013.
+//  Copyright (c) 2013 Jungle Candy Software. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface ViewController : UIViewController
+
+@property (weak, nonatomic) IBOutlet UIImageView *imageView;
+
+- (IBAction)clearCircle:(id)sender;
+
+@end

DotImage/ViewController.m

+//
+//  ViewController.m
+//  DotImage
+//
+//  Created by Abizer Nasir on 07/02/2013.
+//  Copyright (c) 2013 Jungle Candy Software. All rights reserved.
+//
+
+#import "ViewController.h"
+
+@interface ViewController ()
+
+@end
+
+@implementation ViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+	
+    self.imageView.image = [self croppedImage];
+}
+
+- (IBAction)clearCircle:(UITapGestureRecognizer *)sender {
+    UIImageView *imageView = self.imageView;
+    UIImage *currentImage = imageView.image;
+    CGSize imageViewSize = imageView.bounds.size;
+
+    CGFloat rectWidth = 40.0f;
+    CGFloat rectHeight = 40.0f;
+    
+    CGPoint touchPoint = [sender locationInView:imageView];
+
+    UIGraphicsBeginImageContextWithOptions(imageViewSize, YES, 0.0f);
+    CGContextRef ctx = UIGraphicsGetCurrentContext();
+
+    [currentImage drawAtPoint:CGPointZero];
+
+    CGRect clippingEllipseRect = CGRectMake(touchPoint.x - rectWidth / 2, touchPoint.y - rectHeight / 2, rectWidth, rectHeight);
+    CGContextAddEllipseInRect(ctx, clippingEllipseRect);
+
+    CGContextClip(ctx);
+
+    CGContextClearRect(ctx, clippingEllipseRect);
+    
+    imageView.image = UIGraphicsGetImageFromCurrentImageContext();
+    UIGraphicsEndImageContext();
+    
+}
+
+#pragma mark - Private helper methods
+
+- (UIImage *)croppedImage {
+    // Convenience function which just crops the image to fit into the Image view
+    // Stick it into the top left corner and just draw as much as fits regardless of
+    // whether this is on a 3.5 or 4 inch device.
+    NSURL *imageURL = [[NSBundle mainBundle] URLForResource:@"Bikes" withExtension:@"jpg"];
+    UIImage *rawImage = [UIImage imageWithData:[NSData dataWithContentsOfURL:imageURL]];
+
+    CGSize imageViewSize = self.imageView.bounds.size;
+
+    UIGraphicsBeginImageContextWithOptions(imageViewSize, YES, 0.0f);
+    [rawImage drawAtPoint:CGPointZero];
+
+    UIImage *croppedImage = UIGraphicsGetImageFromCurrentImageContext();
+    UIGraphicsEndImageContext();
+
+    return croppedImage;
+}
+
+
+@end

DotImage/en.lproj/InfoPlist.strings

+/* Localized versions of Info.plist keys */
+

DotImage/en.lproj/MainStoryboard.storyboard

+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="3084" systemVersion="12C60" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
+    <dependencies>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="2083"/>
+    </dependencies>
+    <scenes>
+        <!--View Controller-->
+        <scene sceneID="5">
+            <objects>
+                <viewController id="2" customClass="ViewController" sceneMemberID="viewController">
+                    <view key="view" contentMode="scaleToFill" id="3" customClass="UIImageView">
+                        <rect key="frame" x="0.0" y="20" width="320" height="548"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+                        <gestureRecognizers/>
+                        <connections>
+                            <outletCollection property="gestureRecognizers" destination="4DY-aH-LfA" appends="YES" id="lBt-bm-NkV"/>
+                        </connections>
+                    </view>
+                    <connections>
+                        <outlet property="imageView" destination="3" id="kMk-0x-Pm4"/>
+                    </connections>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
+                <tapGestureRecognizer id="4DY-aH-LfA">
+                    <connections>
+                        <action selector="clearCircle:" destination="2" id="fLi-Km-za7"/>
+                    </connections>
+                </tapGestureRecognizer>
+            </objects>
+        </scene>
+    </scenes>
+    <classes>
+        <class className="ViewController" superclassName="UIViewController">
+            <source key="sourceIdentifier" type="project" relativePath="./Classes/ViewController.h"/>
+            <relationships>
+                <relationship kind="action" name="clearCircle:"/>
+                <relationship kind="outlet" name="imageView" candidateClass="UIImageView"/>
+            </relationships>
+        </class>
+    </classes>
+    <simulatedMetricsContainer key="defaultSimulatedMetrics">
+        <simulatedStatusBarMetrics key="statusBar"/>
+        <simulatedOrientationMetrics key="orientation"/>
+        <simulatedScreenMetrics key="destination" type="retina4"/>
+    </simulatedMetricsContainer>
+</document>
+//
+//  main.m
+//  DotImage
+//
+//  Created by Abizer Nasir on 07/02/2013.
+//  Copyright (c) 2013 Jungle Candy Software. 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]));
+    }
+}