Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Protocols and Delegate protocols

  • Loading branch information...
commit a0c65b2a9f817342232928c9ffce504ad698df13 1 parent b67fde1
Ryan Blunden authored
View
329 WhereamI/WhereamI.xcodeproj/project.pbxproj
@@ -0,0 +1,329 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 41585D7B004FBE9E322D6864 /* BNRMapPoint.m in Sources */ = {isa = PBXBuildFile; fileRef = 41585E072B5164D6D0D6A9FC /* BNRMapPoint.m */; };
+ A839FC9A16A45F9B0048E3BC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A839FC9916A45F9B0048E3BC /* UIKit.framework */; };
+ A839FC9C16A45F9B0048E3BC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A839FC9B16A45F9B0048E3BC /* Foundation.framework */; };
+ A839FC9E16A45F9B0048E3BC /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A839FC9D16A45F9B0048E3BC /* CoreGraphics.framework */; };
+ A839FCA416A45F9B0048E3BC /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A839FCA216A45F9B0048E3BC /* InfoPlist.strings */; };
+ A839FCA616A45F9B0048E3BC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A839FCA516A45F9B0048E3BC /* main.m */; };
+ A839FCAA16A45F9B0048E3BC /* WhereamIAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A839FCA916A45F9B0048E3BC /* WhereamIAppDelegate.m */; };
+ A839FCAC16A45F9B0048E3BC /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = A839FCAB16A45F9B0048E3BC /* Default.png */; };
+ A839FCAE16A45F9C0048E3BC /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A839FCAD16A45F9C0048E3BC /* Default@2x.png */; };
+ A839FCB016A45F9C0048E3BC /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A839FCAF16A45F9C0048E3BC /* Default-568h@2x.png */; };
+ A839FCB316A45F9C0048E3BC /* WhereamIViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A839FCB216A45F9C0048E3BC /* WhereamIViewController.m */; };
+ A839FCB616A45F9C0048E3BC /* WhereamIViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = A839FCB416A45F9C0048E3BC /* WhereamIViewController_iPhone.xib */; };
+ A839FCB916A45F9C0048E3BC /* WhereamIViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = A839FCB716A45F9C0048E3BC /* WhereamIViewController_iPad.xib */; };
+ A839FCC016A45FA70048E3BC /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A839FCBF16A45FA70048E3BC /* CoreLocation.framework */; };
+ A839FCC816A476C90048E3BC /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A839FCC716A476C90048E3BC /* MapKit.framework */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 4158532FF4C480E9CC62EE7F /* BNRMapPoint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BNRMapPoint.h; sourceTree = "<group>"; };
+ 41585E072B5164D6D0D6A9FC /* BNRMapPoint.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BNRMapPoint.m; sourceTree = "<group>"; };
+ A839FC9516A45F9B0048E3BC /* WhereamI.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WhereamI.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ A839FC9916A45F9B0048E3BC /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ A839FC9B16A45F9B0048E3BC /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ A839FC9D16A45F9B0048E3BC /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ A839FCA116A45F9B0048E3BC /* WhereamI-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "WhereamI-Info.plist"; sourceTree = "<group>"; };
+ A839FCA316A45F9B0048E3BC /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ A839FCA516A45F9B0048E3BC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ A839FCA716A45F9B0048E3BC /* WhereamI-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "WhereamI-Prefix.pch"; sourceTree = "<group>"; };
+ A839FCA816A45F9B0048E3BC /* WhereamIAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WhereamIAppDelegate.h; sourceTree = "<group>"; };
+ A839FCA916A45F9B0048E3BC /* WhereamIAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WhereamIAppDelegate.m; sourceTree = "<group>"; };
+ A839FCAB16A45F9B0048E3BC /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ A839FCAD16A45F9C0048E3BC /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+ A839FCAF16A45F9C0048E3BC /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
+ A839FCB116A45F9C0048E3BC /* WhereamIViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WhereamIViewController.h; sourceTree = "<group>"; };
+ A839FCB216A45F9C0048E3BC /* WhereamIViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WhereamIViewController.m; sourceTree = "<group>"; };
+ A839FCB516A45F9C0048E3BC /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/WhereamIViewController_iPhone.xib; sourceTree = "<group>"; };
+ A839FCB816A45F9C0048E3BC /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/WhereamIViewController_iPad.xib; sourceTree = "<group>"; };
+ A839FCBF16A45FA70048E3BC /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
+ A839FCC716A476C90048E3BC /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ A839FC9216A45F9B0048E3BC /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A839FCC816A476C90048E3BC /* MapKit.framework in Frameworks */,
+ A839FCC016A45FA70048E3BC /* CoreLocation.framework in Frameworks */,
+ A839FC9A16A45F9B0048E3BC /* UIKit.framework in Frameworks */,
+ A839FC9C16A45F9B0048E3BC /* Foundation.framework in Frameworks */,
+ A839FC9E16A45F9B0048E3BC /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ A839FC8A16A45F9B0048E3BC = {
+ isa = PBXGroup;
+ children = (
+ A839FCC716A476C90048E3BC /* MapKit.framework */,
+ A839FCBF16A45FA70048E3BC /* CoreLocation.framework */,
+ A839FC9F16A45F9B0048E3BC /* WhereamI */,
+ A839FC9816A45F9B0048E3BC /* Frameworks */,
+ A839FC9616A45F9B0048E3BC /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ A839FC9616A45F9B0048E3BC /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ A839FC9516A45F9B0048E3BC /* WhereamI.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ A839FC9816A45F9B0048E3BC /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ A839FC9916A45F9B0048E3BC /* UIKit.framework */,
+ A839FC9B16A45F9B0048E3BC /* Foundation.framework */,
+ A839FC9D16A45F9B0048E3BC /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ A839FC9F16A45F9B0048E3BC /* WhereamI */ = {
+ isa = PBXGroup;
+ children = (
+ A839FCA816A45F9B0048E3BC /* WhereamIAppDelegate.h */,
+ A839FCA916A45F9B0048E3BC /* WhereamIAppDelegate.m */,
+ A839FCB116A45F9C0048E3BC /* WhereamIViewController.h */,
+ A839FCB216A45F9C0048E3BC /* WhereamIViewController.m */,
+ A839FCB416A45F9C0048E3BC /* WhereamIViewController_iPhone.xib */,
+ A839FCB716A45F9C0048E3BC /* WhereamIViewController_iPad.xib */,
+ A839FCA016A45F9B0048E3BC /* Supporting Files */,
+ 41585E072B5164D6D0D6A9FC /* BNRMapPoint.m */,
+ 4158532FF4C480E9CC62EE7F /* BNRMapPoint.h */,
+ );
+ path = WhereamI;
+ sourceTree = "<group>";
+ };
+ A839FCA016A45F9B0048E3BC /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ A839FCA116A45F9B0048E3BC /* WhereamI-Info.plist */,
+ A839FCA216A45F9B0048E3BC /* InfoPlist.strings */,
+ A839FCA516A45F9B0048E3BC /* main.m */,
+ A839FCA716A45F9B0048E3BC /* WhereamI-Prefix.pch */,
+ A839FCAB16A45F9B0048E3BC /* Default.png */,
+ A839FCAD16A45F9C0048E3BC /* Default@2x.png */,
+ A839FCAF16A45F9C0048E3BC /* Default-568h@2x.png */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ A839FC9416A45F9B0048E3BC /* WhereamI */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = A839FCBC16A45F9C0048E3BC /* Build configuration list for PBXNativeTarget "WhereamI" */;
+ buildPhases = (
+ A839FC9116A45F9B0048E3BC /* Sources */,
+ A839FC9216A45F9B0048E3BC /* Frameworks */,
+ A839FC9316A45F9B0048E3BC /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = WhereamI;
+ productName = WhereamI;
+ productReference = A839FC9516A45F9B0048E3BC /* WhereamI.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ A839FC8C16A45F9B0048E3BC /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ CLASSPREFIX = WhereamI;
+ LastUpgradeCheck = 0450;
+ ORGANIZATIONNAME = "Ryan Blunden";
+ };
+ buildConfigurationList = A839FC8F16A45F9B0048E3BC /* Build configuration list for PBXProject "WhereamI" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = A839FC8A16A45F9B0048E3BC;
+ productRefGroup = A839FC9616A45F9B0048E3BC /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ A839FC9416A45F9B0048E3BC /* WhereamI */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ A839FC9316A45F9B0048E3BC /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A839FCA416A45F9B0048E3BC /* InfoPlist.strings in Resources */,
+ A839FCAC16A45F9B0048E3BC /* Default.png in Resources */,
+ A839FCAE16A45F9C0048E3BC /* Default@2x.png in Resources */,
+ A839FCB016A45F9C0048E3BC /* Default-568h@2x.png in Resources */,
+ A839FCB616A45F9C0048E3BC /* WhereamIViewController_iPhone.xib in Resources */,
+ A839FCB916A45F9C0048E3BC /* WhereamIViewController_iPad.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ A839FC9116A45F9B0048E3BC /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A839FCA616A45F9B0048E3BC /* main.m in Sources */,
+ A839FCAA16A45F9B0048E3BC /* WhereamIAppDelegate.m in Sources */,
+ A839FCB316A45F9C0048E3BC /* WhereamIViewController.m in Sources */,
+ 41585D7B004FBE9E322D6864 /* BNRMapPoint.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ A839FCA216A45F9B0048E3BC /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A839FCA316A45F9B0048E3BC /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ A839FCB416A45F9C0048E3BC /* WhereamIViewController_iPhone.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A839FCB516A45F9C0048E3BC /* en */,
+ );
+ name = WhereamIViewController_iPhone.xib;
+ sourceTree = "<group>";
+ };
+ A839FCB716A45F9C0048E3BC /* WhereamIViewController_iPad.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ A839FCB816A45F9C0048E3BC /* en */,
+ );
+ name = WhereamIViewController_iPad.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ A839FCBA16A45F9C0048E3BC /* 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;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ A839FCBB16A45F9C0048E3BC /* 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;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ A839FCBD16A45F9C0048E3BC /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "WhereamI/WhereamI-Prefix.pch";
+ INFOPLIST_FILE = "WhereamI/WhereamI-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ A839FCBE16A45F9C0048E3BC /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "WhereamI/WhereamI-Prefix.pch";
+ INFOPLIST_FILE = "WhereamI/WhereamI-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ A839FC8F16A45F9B0048E3BC /* Build configuration list for PBXProject "WhereamI" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A839FCBA16A45F9C0048E3BC /* Debug */,
+ A839FCBB16A45F9C0048E3BC /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ A839FCBC16A45F9C0048E3BC /* Build configuration list for PBXNativeTarget "WhereamI" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A839FCBD16A45F9C0048E3BC /* Debug */,
+ A839FCBE16A45F9C0048E3BC /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = A839FC8C16A45F9B0048E3BC /* Project object */;
+}
View
23 WhereamI/WhereamI/BNRMapPoint.h
@@ -0,0 +1,23 @@
+//
+// Created by rblunden on 1/14/13.
+//
+// To change the template use AppCode | Preferences | File Templates.
+//
+
+
+#import <Foundation/Foundation.h>
+#import <CoreLocation/CoreLocation.h>
+#import <MapKit/MapKit.h>
+
+@interface BNRMapPoint : NSObject <MKAnnotation>
+
+// A new designated initializer for instances of BNRMapPoint
+- (id)initWithCoordinate:(CLLocationCoordinate2D)c title:(NSString *)t;
+
+// This is a required property from MKAnnotation
+@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
+
+// This is an optional property from MKAnnotation
+@property (nonatomic, copy) NSString *title;
+
+@end
View
26 WhereamI/WhereamI/BNRMapPoint.m
@@ -0,0 +1,26 @@
+//
+// Created by rblunden on 1/14/13.
+//
+// To change the template use AppCode | Preferences | File Templates.
+//
+
+
+#import "BNRMapPoint.h"
+
+@implementation BNRMapPoint
+
+- (id)init {
+ return [self initWithCoordinate:CLLocationCoordinate2DMake(43.07, -87.39)
+ title:@"Home Town"];
+}
+- (id)initWithCoordinate:(CLLocationCoordinate2D)c title:(NSString *)t {
+ self = [super init];
+ if (self) {
+ _coordinate = c;
+ [self setTitle:t];
+ }
+
+ return self;
+}
+
+@end
View
BIN  WhereamI/WhereamI/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  WhereamI/WhereamI/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  WhereamI/WhereamI/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
45 WhereamI/WhereamI/WhereamI-Info.plist
@@ -0,0 +1,45 @@
+<?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.bignerdranch.${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>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
View
14 WhereamI/WhereamI/WhereamI-Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'WhereamI' target in the 'WhereamI' project
+//
+
+#import <Availability.h>
+
+#ifndef __IPHONE_4_0
+#warning "This project uses features only available in iOS SDK 4.0 and later."
+#endif
+
+#ifdef __OBJC__
+ #import <UIKit/UIKit.h>
+ #import <Foundation/Foundation.h>
+#endif
View
19 WhereamI/WhereamI/WhereamIAppDelegate.h
@@ -0,0 +1,19 @@
+//
+// WhereamIAppDelegate.h
+// WhereamI
+//
+// Created by Ryan Blunden on 1/14/13.
+// Copyright (c) 2013 Ryan Blunden. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class WhereamIViewController;
+
+@interface WhereamIAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@property (strong, nonatomic) WhereamIViewController *viewController;
+
+@end
View
56 WhereamI/WhereamI/WhereamIAppDelegate.m
@@ -0,0 +1,56 @@
+//
+// WhereamIAppDelegate.m
+// WhereamI
+//
+// Created by Ryan Blunden on 1/14/13.
+// Copyright (c) 2013 Ryan Blunden. All rights reserved.
+//
+
+#import "WhereamIAppDelegate.h"
+
+#import "WhereamIViewController.h"
+
+@implementation WhereamIAppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ // Override point for customization after application launch.
+ if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
+ self.viewController = [[WhereamIViewController alloc] initWithNibName:@"WhereamIViewController_iPhone" bundle:nil];
+ } else {
+ self.viewController = [[WhereamIViewController alloc] initWithNibName:@"WhereamIViewController_iPad" bundle:nil];
+ }
+ self.window.rootViewController = self.viewController;
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+- (void)applicationWillResignActive:(UIApplication *)application
+{
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
+}
+
+- (void)applicationDidEnterBackground:(UIApplication *)application
+{
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
+}
+
+- (void)applicationWillEnterForeground:(UIApplication *)application
+{
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
+}
+
+- (void)applicationDidBecomeActive:(UIApplication *)application
+{
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
+}
+
+- (void)applicationWillTerminate:(UIApplication *)application
+{
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
+}
+
+@end
View
25 WhereamI/WhereamI/WhereamIViewController.h
@@ -0,0 +1,25 @@
+//
+// WhereamIViewController.h
+// WhereamI
+//
+// Created by Ryan Blunden on 1/14/13.
+// Copyright (c) 2013 Ryan Blunden. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <CoreLocation/CoreLocation.h>
+#import <MapKit/MapKit.h>
+
+@interface WhereamIViewController : UIViewController
+ <CLLocationManagerDelegate, MKMapViewDelegate, UITextFieldDelegate> {
+ CLLocationManager *locationManager;
+
+ IBOutlet MKMapView *worldView;
+ IBOutlet UIActivityIndicatorView *activityInidcator;
+ IBOutlet UITextField *locationTitleField;
+}
+
+- (void)findLocation;
+- (void)foundLocation;
+
+@end
View
104 WhereamI/WhereamI/WhereamIViewController.m
@@ -0,0 +1,104 @@
+//
+// WhereamIViewController.m
+// WhereamI
+//
+// Created by Ryan Blunden on 1/14/13.
+// Copyright (c) 2013 Ryan Blunden. All rights reserved.
+//
+
+#import "WhereamIViewController.h"
+#import "BNRMapPoint.h"
+
+@interface WhereamIViewController ()
+
+@end
+
+@implementation WhereamIViewController
+
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
+ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
+ if (self) {
+ locationManager = [[CLLocationManager alloc] init];
+
+ [locationManager setDelegate:self];
+
+ // As accurate as possible
+ [locationManager setDesiredAccuracy:kCLLocationAccuracyBest];
+ }
+
+ return self;
+}
+
+- (void)viewDidLoad {
+ [worldView setShowsUserLocation:YES];
+}
+
+- (void)locationManager:(CLLocationManager *)manager
+ didUpdateToLocation:(CLLocation *)newLocation
+ fromLocation:(CLLocation *)oldLocation {
+
+ // How many seconds ago was this new location created?
+ NSTimeInterval t = [[newLocation timestamp] timeIntervalSinceNow];
+
+ // CLLocationManager will return the last found location of the
+ // device first, you don't want that data in this case.
+ // If this location was made more than 3 minutes ago, ignore it.
+ if (t < -180) {
+ // This is cached data, you don't want it, keep looking
+ return;
+ }
+
+ [self foundLocation:newLocation];
+}
+
+- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation {
+ CLLocationCoordinate2D loc = [userLocation coordinate];
+ MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance(loc, 250, 250);
+ [worldView setRegion:region animated:YES];
+}
+
+
+- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
+ NSLog(@"Could not find location: %@", error);
+}
+
+- (BOOL)textFieldShouldReturn:(UITextField *)textField {
+ [self findLocation];
+
+ [textField resignFirstResponder];
+
+ return YES;
+}
+
+- (void)findLocation {
+ [locationManager startUpdatingLocation];
+ [activityInidcator startAnimating];
+ [locationTitleField setHidden:YES];
+}
+
+- (void)foundLocation:(CLLocation *)loc {
+ CLLocationCoordinate2D coord = [loc coordinate];
+
+ // Create an instance of BNRMapPoint with the curent data
+ BNRMapPoint *mp = [[BNRMapPoint alloc] initWithCoordinate:coord title:[locationTitleField text]];
+
+ // Add it to the map view
+ [worldView addAnnotation:mp];
+
+ // Zoom the region to this location
+ MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance(coord, 250, 250);
+ [worldView setRegion:region animated:YES];
+
+ // Reset the UI
+ [locationTitleField setText:@""];
+ [activityInidcator stopAnimating];
+ [locationTitleField setHidden:NO];
+ [locationManager stopUpdatingLocation];
+}
+
+- (void)dealloc {
+ // Tell the location manager to stop sending us messages
+ [locationManager setDelegate:nil];
+}
+
+@end
View
2  WhereamI/WhereamI/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
121 WhereamI/WhereamI/en.lproj/WhereamIViewController_iPad.xib
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1536</int>
+ <string key="IBDocument.SystemVersion">12A206j</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2519</string>
+ <string key="IBDocument.AppKitVersion">1172.1</string>
+ <string key="IBDocument.HIToolboxVersion">613.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">1856</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUIView</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="841351856">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ <object class="IBProxyObject" id="606714003">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ <object class="IBUIView" id="766721923">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{0, 20}, {768, 1004}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
+ <int key="IBUIStatusBarStyle">2</int>
+ </object>
+ <string key="targetRuntimeIdentifier">IBIPadFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="841351856"/>
+ <reference key="destination" ref="766721923"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="841351856"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="606714003"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">2</int>
+ <reference key="object" ref="766721923"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">WhereamIViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">3</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">WhereamIViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/WhereamIViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <bool key="IBDocument.UseAutolayout">YES</bool>
+ <string key="IBCocoaTouchPluginVersion">1856</string>
+ </data>
+</archive>
View
514 WhereamI/WhereamI/en.lproj/WhereamIViewController_iPhone.xib
@@ -0,0 +1,514 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1536</int>
+ <string key="IBDocument.SystemVersion">12C60</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2844</string>
+ <string key="IBDocument.AppKitVersion">1187.34</string>
+ <string key="IBDocument.HIToolboxVersion">625.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">1930</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBMKMapView</string>
+ <string>IBNSLayoutConstraint</string>
+ <string>IBProxyObject</string>
+ <string>IBUIActivityIndicatorView</string>
+ <string>IBUITextField</string>
+ <string>IBUIView</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="843779117">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="774585933">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBMKMapView" id="302274878">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{-7, 0}, {335, 548}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="533998257"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <bool key="IBUIMultipleTouchEnabled">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIActivityIndicatorView" id="234274935">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">-2147483356</int>
+ <string key="NSFrame">{{142, 58}, {37, 37}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIStyle">0</int>
+ </object>
+ <object class="IBUITextField" id="533998257">
+ <reference key="NSNextResponder" ref="774585933"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{60, 20}, {188, 30}}</string>
+ <reference key="NSSuperview" ref="774585933"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="234274935"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <string key="IBUIText"/>
+ <int key="IBUIBorderStyle">3</int>
+ <string key="IBUIPlaceholder">Enter location name</string>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MAA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace" id="32630587">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <bool key="IBUIAdjustsFontSizeToFit">YES</bool>
+ <float key="IBUIMinimumFontSize">17</float>
+ <object class="IBUITextInputTraits" key="IBUITextInputTraits">
+ <int key="IBUIReturnKeyType">9</int>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">1</int>
+ <double key="pointSize">14</double>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">14</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 20}, {320, 548}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="302274878"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC43NQA</bytes>
+ <reference key="NSCustomColorSpace" ref="32630587"/>
+ </object>
+ <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <object class="IBUIScreenMetrics" key="IBUISimulatedDestinationMetrics">
+ <string key="IBUISimulatedSizeMetricsClass">IBUIScreenMetrics</string>
+ <object class="NSMutableDictionary" key="IBUINormalizedOrientationToSizeMap">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <array key="dict.sortedKeys">
+ <integer value="1"/>
+ <integer value="3"/>
+ </array>
+ <array key="dict.values">
+ <string>{320, 568}</string>
+ <string>{568, 320}</string>
+ </array>
+ </object>
+ <string key="IBUITargetRuntime">IBCocoaTouchFramework</string>
+ <string key="IBUIDisplayName">Retina 4 Full Screen</string>
+ <int key="IBUIType">2</int>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="774585933"/>
+ </object>
+ <int key="connectionID">7</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">worldView</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="302274878"/>
+ </object>
+ <int key="connectionID">15</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">locationTitleField</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="533998257"/>
+ </object>
+ <int key="connectionID">36</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">activityInidcator</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="234274935"/>
+ </object>
+ <int key="connectionID">40</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="302274878"/>
+ <reference key="destination" ref="372490531"/>
+ </object>
+ <int key="connectionID">42</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="533998257"/>
+ <reference key="destination" ref="372490531"/>
+ </object>
+ <int key="connectionID">41</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="843779117"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="774585933"/>
+ <array class="NSMutableArray" key="children">
+ <object class="IBNSLayoutConstraint" id="94876234">
+ <reference key="firstItem" ref="234274935"/>
+ <int key="firstAttribute">9</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="302274878"/>
+ <int key="secondAttribute">9</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">6</int>
+ <float key="scoringTypeFloat">24</float>
+ <int key="contentType">2</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="705671156">
+ <reference key="firstItem" ref="234274935"/>
+ <int key="firstAttribute">9</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">9</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">5</int>
+ <float key="scoringTypeFloat">22</float>
+ <int key="contentType">2</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="592577089">
+ <reference key="firstItem" ref="234274935"/>
+ <int key="firstAttribute">3</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="533998257"/>
+ <int key="secondAttribute">4</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">8</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">6</int>
+ <float key="scoringTypeFloat">24</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="832105741">
+ <reference key="firstItem" ref="533998257"/>
+ <int key="firstAttribute">5</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">5</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">60</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="1043955175">
+ <reference key="firstItem" ref="533998257"/>
+ <int key="firstAttribute">3</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">3</int>
+ <float key="multiplier">1</float>
+ <object class="IBNSLayoutSymbolicConstant" key="constant">
+ <double key="value">20</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="101111924">
+ <reference key="firstItem" ref="302274878"/>
+ <int key="firstAttribute">4</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">4</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <object class="IBNSLayoutConstraint" id="109851246">
+ <reference key="firstItem" ref="302274878"/>
+ <int key="firstAttribute">3</int>
+ <int key="relation">0</int>
+ <reference key="secondItem" ref="774585933"/>
+ <int key="secondAttribute">3</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">0.0</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="774585933"/>
+ <int key="scoringType">8</int>
+ <float key="scoringTypeFloat">29</float>
+ <int key="contentType">3</int>
+ </object>
+ <reference ref="302274878"/>
+ <reference ref="533998257"/>
+ <reference ref="234274935"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">8</int>
+ <reference key="object" ref="302274878"/>
+ <array class="NSMutableArray" key="children">
+ <object class="IBNSLayoutConstraint" id="808324984">
+ <reference key="firstItem" ref="302274878"/>
+ <int key="firstAttribute">7</int>
+ <int key="relation">0</int>
+ <nil key="secondItem"/>
+ <int key="secondAttribute">0</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">335</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="302274878"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">1</int>
+ </object>
+ </array>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">10</int>
+ <reference key="object" ref="109851246"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">11</int>
+ <reference key="object" ref="101111924"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">13</int>
+ <reference key="object" ref="808324984"/>
+ <reference key="parent" ref="302274878"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">19</int>
+ <reference key="object" ref="234274935"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">25</int>
+ <reference key="object" ref="533998257"/>
+ <array class="NSMutableArray" key="children">
+ <object class="IBNSLayoutConstraint" id="381061803">
+ <reference key="firstItem" ref="533998257"/>
+ <int key="firstAttribute">7</int>
+ <int key="relation">0</int>
+ <nil key="secondItem"/>
+ <int key="secondAttribute">0</int>
+ <float key="multiplier">1</float>
+ <object class="IBLayoutConstant" key="constant">
+ <double key="value">188</double>
+ </object>
+ <float key="priority">1000</float>
+ <reference key="containingView" ref="533998257"/>
+ <int key="scoringType">3</int>
+ <float key="scoringTypeFloat">9</float>
+ <int key="contentType">1</int>
+ </object>
+ </array>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">27</int>
+ <reference key="object" ref="1043955175"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">30</int>
+ <reference key="object" ref="381061803"/>
+ <reference key="parent" ref="533998257"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">32</int>
+ <reference key="object" ref="832105741"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">33</int>
+ <reference key="object" ref="592577089"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">34</int>
+ <reference key="object" ref="705671156"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">35</int>
+ <reference key="object" ref="94876234"/>
+ <reference key="parent" ref="774585933"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">WhereamIViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="10.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="11.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="13.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="19.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <boolean value="NO" key="19.IBViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ <string key="25.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <array class="NSMutableArray" key="25.IBViewMetadataConstraints">
+ <reference ref="381061803"/>
+ </array>
+ <boolean value="NO" key="25.IBViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ <string key="27.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="30.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="32.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="33.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="34.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="35.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="6.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <array class="NSMutableArray" key="6.IBViewMetadataConstraints">
+ <reference ref="109851246"/>
+ <reference ref="101111924"/>
+ <reference ref="1043955175"/>
+ <reference ref="832105741"/>
+ <reference ref="592577089"/>
+ <reference ref="705671156"/>
+ <reference ref="94876234"/>
+ </array>
+ <string key="8.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <array class="NSMutableArray" key="8.IBViewMetadataConstraints">
+ <reference ref="808324984"/>
+ </array>
+ <boolean value="NO" key="8.IBViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">42</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">NSLayoutConstraint</string>
+ <string key="superclassName">NSObject</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NSLayoutConstraint.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">WhereamIViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <dictionary class="NSMutableDictionary" key="outlets">
+ <string key="activityInidcator">UIActivityIndicatorView</string>
+ <string key="locationTitleField">UITextField</string>
+ <string key="worldView">MKMapView</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <object class="IBToOneOutletInfo" key="activityInidcator">
+ <string key="name">activityInidcator</string>
+ <string key="candidateClassName">UIActivityIndicatorView</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="locationTitleField">
+ <string key="name">locationTitleField</string>
+ <string key="candidateClassName">UITextField</string>
+ </object>
+ <object class="IBToOneOutletInfo" key="worldView">
+ <string key="name">worldView</string>
+ <string key="candidateClassName">MKMapView</string>
+ </object>
+ </dictionary>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/WhereamIViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <bool key="IBDocument.UseAutolayout">YES</bool>
+ <string key="IBCocoaTouchPluginVersion">1930</string>
+ </data>
+</archive>
View
18 WhereamI/WhereamI/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// WhereamI
+//
+// Created by Ryan Blunden on 1/14/13.
+// Copyright (c) 2013 Ryan Blunden. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "WhereamIAppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([WhereamIAppDelegate class]));
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.