Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated the demo apps

  • Loading branch information...
commit 9eaab7937c04068a44ab21cf4dce63f0aa9e8fe2 1 parent c7b9079
@neilang authored
View
432 Demo.xcodeproj/project.pbxproj
@@ -0,0 +1,432 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 46;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 283B1ACE15564BBD00A9133D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 283B1ACD15564BBD00A9133D /* UIKit.framework */; };
+ 283B1AD015564BBD00A9133D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 283B1ACF15564BBD00A9133D /* Foundation.framework */; };
+ 283B1AD215564BBD00A9133D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 283B1AD115564BBD00A9133D /* CoreGraphics.framework */; };
+ 283B1AD815564BBD00A9133D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AD615564BBD00A9133D /* InfoPlist.strings */; };
+ 283B1ADA15564BBD00A9133D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1AD915564BBD00A9133D /* main.m */; };
+ 283B1ADE15564BBD00A9133D /* NAAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1ADD15564BBD00A9133D /* NAAppDelegate.m */; };
+ 283B1AE115564BBD00A9133D /* NAMasterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1AE015564BBD00A9133D /* NAMasterViewController.m */; };
+ 283B1AE715564BBD00A9133D /* NAMasterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AE515564BBD00A9133D /* NAMasterViewController.xib */; };
+ 283B1AF215564D4900A9133D /* NABasicDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1AF115564D4900A9133D /* NABasicDemoViewController.m */; };
+ 283B1B1415564DEA00A9133D /* callout_anchor.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AF815564DEA00A9133D /* callout_anchor.png */; };
+ 283B1B1515564DEA00A9133D /* callout_anchor@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AF915564DEA00A9133D /* callout_anchor@2x.png */; };
+ 283B1B1615564DEA00A9133D /* callout_bg.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AFA15564DEA00A9133D /* callout_bg.png */; };
+ 283B1B1715564DEA00A9133D /* callout_bg@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AFB15564DEA00A9133D /* callout_bg@2x.png */; };
+ 283B1B1815564DEA00A9133D /* callout_left.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AFC15564DEA00A9133D /* callout_left.png */; };
+ 283B1B1915564DEA00A9133D /* callout_left@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AFD15564DEA00A9133D /* callout_left@2x.png */; };
+ 283B1B1A15564DEA00A9133D /* callout_right.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AFE15564DEA00A9133D /* callout_right.png */; };
+ 283B1B1B15564DEA00A9133D /* callout_right@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1AFF15564DEA00A9133D /* callout_right@2x.png */; };
+ 283B1B1C15564DEA00A9133D /* NAAnnotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1B0115564DEA00A9133D /* NAAnnotation.m */; };
+ 283B1B1D15564DEA00A9133D /* NACallOutView.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1B0315564DEA00A9133D /* NACallOutView.m */; };
+ 283B1B1E15564DEA00A9133D /* NAMapView.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1B0515564DEA00A9133D /* NAMapView.m */; };
+ 283B1B1F15564DEA00A9133D /* NAPinAnnotationView.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1B0715564DEA00A9133D /* NAPinAnnotationView.m */; };
+ 283B1B2015564DEA00A9133D /* pinGreen.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0815564DEA00A9133D /* pinGreen.png */; };
+ 283B1B2115564DEA00A9133D /* pinGreen@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0915564DEA00A9133D /* pinGreen@2x.png */; };
+ 283B1B2215564DEA00A9133D /* pinGreenFloating.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0A15564DEA00A9133D /* pinGreenFloating.png */; };
+ 283B1B2315564DEA00A9133D /* pinGreenFloating@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0B15564DEA00A9133D /* pinGreenFloating@2x.png */; };
+ 283B1B2415564DEA00A9133D /* pinPurple.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0C15564DEA00A9133D /* pinPurple.png */; };
+ 283B1B2515564DEA00A9133D /* pinPurple@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0D15564DEA00A9133D /* pinPurple@2x.png */; };
+ 283B1B2615564DEA00A9133D /* pinPurpleFloating.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0E15564DEA00A9133D /* pinPurpleFloating.png */; };
+ 283B1B2715564DEA00A9133D /* pinPurpleFloating@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B0F15564DEA00A9133D /* pinPurpleFloating@2x.png */; };
+ 283B1B2815564DEA00A9133D /* pinRed.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B1015564DEA00A9133D /* pinRed.png */; };
+ 283B1B2915564DEA00A9133D /* pinRed@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B1115564DEA00A9133D /* pinRed@2x.png */; };
+ 283B1B2A15564DEA00A9133D /* pinRedFloating.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B1215564DEA00A9133D /* pinRedFloating.png */; };
+ 283B1B2B15564DEA00A9133D /* pinRedFloating@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B1315564DEA00A9133D /* pinRedFloating@2x.png */; };
+ 283B1B2E15564EB500A9133D /* australia.png in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B2D15564EB500A9133D /* australia.png */; };
+ 283B1B32155651FD00A9133D /* NALoadViaNIBDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1B30155651FD00A9133D /* NALoadViaNIBDemoViewController.m */; };
+ 283B1B33155651FD00A9133D /* NALoadViaNIBDemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B31155651FD00A9133D /* NALoadViaNIBDemoViewController.xib */; };
+ 283B1B361556557900A9133D /* NAAnimatedDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1B351556557800A9133D /* NAAnimatedDemoViewController.m */; };
+ 283B1B3A155659FB00A9133D /* NAInteractiveDemoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 283B1B38155659FB00A9133D /* NAInteractiveDemoViewController.m */; };
+ 283B1B3B155659FB00A9133D /* NAInteractiveDemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 283B1B39155659FB00A9133D /* NAInteractiveDemoViewController.xib */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 283B1AC915564BBD00A9133D /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 283B1ACD15564BBD00A9133D /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
+ 283B1ACF15564BBD00A9133D /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
+ 283B1AD115564BBD00A9133D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
+ 283B1AD515564BBD00A9133D /* Demo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Demo-Info.plist"; sourceTree = "<group>"; };
+ 283B1AD715564BBD00A9133D /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
+ 283B1AD915564BBD00A9133D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
+ 283B1ADB15564BBD00A9133D /* Demo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Demo-Prefix.pch"; sourceTree = "<group>"; };
+ 283B1ADC15564BBD00A9133D /* NAAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NAAppDelegate.h; sourceTree = "<group>"; };
+ 283B1ADD15564BBD00A9133D /* NAAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NAAppDelegate.m; sourceTree = "<group>"; };
+ 283B1ADF15564BBD00A9133D /* NAMasterViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NAMasterViewController.h; sourceTree = "<group>"; };
+ 283B1AE015564BBD00A9133D /* NAMasterViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NAMasterViewController.m; sourceTree = "<group>"; };
+ 283B1AE615564BBD00A9133D /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/NAMasterViewController.xib; sourceTree = "<group>"; };
+ 283B1AF015564D4900A9133D /* NABasicDemoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NABasicDemoViewController.h; sourceTree = "<group>"; };
+ 283B1AF115564D4900A9133D /* NABasicDemoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NABasicDemoViewController.m; sourceTree = "<group>"; };
+ 283B1AF815564DEA00A9133D /* callout_anchor.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = callout_anchor.png; path = NAMapKit/callout_anchor.png; sourceTree = SOURCE_ROOT; };
+ 283B1AF915564DEA00A9133D /* callout_anchor@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "callout_anchor@2x.png"; path = "NAMapKit/callout_anchor@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1AFA15564DEA00A9133D /* callout_bg.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = callout_bg.png; path = NAMapKit/callout_bg.png; sourceTree = SOURCE_ROOT; };
+ 283B1AFB15564DEA00A9133D /* callout_bg@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "callout_bg@2x.png"; path = "NAMapKit/callout_bg@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1AFC15564DEA00A9133D /* callout_left.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = callout_left.png; path = NAMapKit/callout_left.png; sourceTree = SOURCE_ROOT; };
+ 283B1AFD15564DEA00A9133D /* callout_left@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "callout_left@2x.png"; path = "NAMapKit/callout_left@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1AFE15564DEA00A9133D /* callout_right.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = callout_right.png; path = NAMapKit/callout_right.png; sourceTree = SOURCE_ROOT; };
+ 283B1AFF15564DEA00A9133D /* callout_right@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "callout_right@2x.png"; path = "NAMapKit/callout_right@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1B0015564DEA00A9133D /* NAAnnotation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NAAnnotation.h; path = NAMapKit/NAAnnotation.h; sourceTree = SOURCE_ROOT; };
+ 283B1B0115564DEA00A9133D /* NAAnnotation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NAAnnotation.m; path = NAMapKit/NAAnnotation.m; sourceTree = SOURCE_ROOT; };
+ 283B1B0215564DEA00A9133D /* NACallOutView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NACallOutView.h; path = NAMapKit/NACallOutView.h; sourceTree = SOURCE_ROOT; };
+ 283B1B0315564DEA00A9133D /* NACallOutView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NACallOutView.m; path = NAMapKit/NACallOutView.m; sourceTree = SOURCE_ROOT; };
+ 283B1B0415564DEA00A9133D /* NAMapView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NAMapView.h; path = NAMapKit/NAMapView.h; sourceTree = SOURCE_ROOT; };
+ 283B1B0515564DEA00A9133D /* NAMapView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NAMapView.m; path = NAMapKit/NAMapView.m; sourceTree = SOURCE_ROOT; };
+ 283B1B0615564DEA00A9133D /* NAPinAnnotationView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NAPinAnnotationView.h; path = NAMapKit/NAPinAnnotationView.h; sourceTree = SOURCE_ROOT; };
+ 283B1B0715564DEA00A9133D /* NAPinAnnotationView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = NAPinAnnotationView.m; path = NAMapKit/NAPinAnnotationView.m; sourceTree = SOURCE_ROOT; };
+ 283B1B0815564DEA00A9133D /* pinGreen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = pinGreen.png; path = NAMapKit/pinGreen.png; sourceTree = SOURCE_ROOT; };
+ 283B1B0915564DEA00A9133D /* pinGreen@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pinGreen@2x.png"; path = "NAMapKit/pinGreen@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1B0A15564DEA00A9133D /* pinGreenFloating.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = pinGreenFloating.png; path = NAMapKit/pinGreenFloating.png; sourceTree = SOURCE_ROOT; };
+ 283B1B0B15564DEA00A9133D /* pinGreenFloating@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pinGreenFloating@2x.png"; path = "NAMapKit/pinGreenFloating@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1B0C15564DEA00A9133D /* pinPurple.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = pinPurple.png; path = NAMapKit/pinPurple.png; sourceTree = SOURCE_ROOT; };
+ 283B1B0D15564DEA00A9133D /* pinPurple@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pinPurple@2x.png"; path = "NAMapKit/pinPurple@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1B0E15564DEA00A9133D /* pinPurpleFloating.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = pinPurpleFloating.png; path = NAMapKit/pinPurpleFloating.png; sourceTree = SOURCE_ROOT; };
+ 283B1B0F15564DEA00A9133D /* pinPurpleFloating@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pinPurpleFloating@2x.png"; path = "NAMapKit/pinPurpleFloating@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1B1015564DEA00A9133D /* pinRed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = pinRed.png; path = NAMapKit/pinRed.png; sourceTree = SOURCE_ROOT; };
+ 283B1B1115564DEA00A9133D /* pinRed@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pinRed@2x.png"; path = "NAMapKit/pinRed@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1B1215564DEA00A9133D /* pinRedFloating.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = pinRedFloating.png; path = NAMapKit/pinRedFloating.png; sourceTree = SOURCE_ROOT; };
+ 283B1B1315564DEA00A9133D /* pinRedFloating@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pinRedFloating@2x.png"; path = "NAMapKit/pinRedFloating@2x.png"; sourceTree = SOURCE_ROOT; };
+ 283B1B2D15564EB500A9133D /* australia.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = australia.png; sourceTree = "<group>"; };
+ 283B1B2F155651FD00A9133D /* NALoadViaNIBDemoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NALoadViaNIBDemoViewController.h; sourceTree = "<group>"; };
+ 283B1B30155651FD00A9133D /* NALoadViaNIBDemoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NALoadViaNIBDemoViewController.m; sourceTree = "<group>"; };
+ 283B1B31155651FD00A9133D /* NALoadViaNIBDemoViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = NALoadViaNIBDemoViewController.xib; sourceTree = "<group>"; };
+ 283B1B341556557800A9133D /* NAAnimatedDemoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NAAnimatedDemoViewController.h; sourceTree = "<group>"; };
+ 283B1B351556557800A9133D /* NAAnimatedDemoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NAAnimatedDemoViewController.m; sourceTree = "<group>"; };
+ 283B1B37155659FB00A9133D /* NAInteractiveDemoViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NAInteractiveDemoViewController.h; sourceTree = "<group>"; };
+ 283B1B38155659FB00A9133D /* NAInteractiveDemoViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NAInteractiveDemoViewController.m; sourceTree = "<group>"; };
+ 283B1B39155659FB00A9133D /* NAInteractiveDemoViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = NAInteractiveDemoViewController.xib; sourceTree = "<group>"; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 283B1AC615564BBD00A9133D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 283B1ACE15564BBD00A9133D /* UIKit.framework in Frameworks */,
+ 283B1AD015564BBD00A9133D /* Foundation.framework in Frameworks */,
+ 283B1AD215564BBD00A9133D /* CoreGraphics.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 283B1ABE15564BBD00A9133D = {
+ isa = PBXGroup;
+ children = (
+ 283B1AD315564BBD00A9133D /* Demo */,
+ 283B1ACC15564BBD00A9133D /* Frameworks */,
+ 283B1ACA15564BBD00A9133D /* Products */,
+ );
+ sourceTree = "<group>";
+ };
+ 283B1ACA15564BBD00A9133D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 283B1AC915564BBD00A9133D /* Demo.app */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+ 283B1ACC15564BBD00A9133D /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 283B1ACD15564BBD00A9133D /* UIKit.framework */,
+ 283B1ACF15564BBD00A9133D /* Foundation.framework */,
+ 283B1AD115564BBD00A9133D /* CoreGraphics.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 283B1AD315564BBD00A9133D /* Demo */ = {
+ isa = PBXGroup;
+ children = (
+ 283B1B2D15564EB500A9133D /* australia.png */,
+ 283B1AF315564D5100A9133D /* NAMapKit */,
+ 283B1ADC15564BBD00A9133D /* NAAppDelegate.h */,
+ 283B1ADD15564BBD00A9133D /* NAAppDelegate.m */,
+ 283B1ADF15564BBD00A9133D /* NAMasterViewController.h */,
+ 283B1AE015564BBD00A9133D /* NAMasterViewController.m */,
+ 283B1AE515564BBD00A9133D /* NAMasterViewController.xib */,
+ 283B1AD415564BBD00A9133D /* Supporting Files */,
+ 283B1AF015564D4900A9133D /* NABasicDemoViewController.h */,
+ 283B1AF115564D4900A9133D /* NABasicDemoViewController.m */,
+ 283B1B2F155651FD00A9133D /* NALoadViaNIBDemoViewController.h */,
+ 283B1B30155651FD00A9133D /* NALoadViaNIBDemoViewController.m */,
+ 283B1B31155651FD00A9133D /* NALoadViaNIBDemoViewController.xib */,
+ 283B1B341556557800A9133D /* NAAnimatedDemoViewController.h */,
+ 283B1B351556557800A9133D /* NAAnimatedDemoViewController.m */,
+ 283B1B37155659FB00A9133D /* NAInteractiveDemoViewController.h */,
+ 283B1B38155659FB00A9133D /* NAInteractiveDemoViewController.m */,
+ 283B1B39155659FB00A9133D /* NAInteractiveDemoViewController.xib */,
+ );
+ path = Demo;
+ sourceTree = "<group>";
+ };
+ 283B1AD415564BBD00A9133D /* Supporting Files */ = {
+ isa = PBXGroup;
+ children = (
+ 283B1AD515564BBD00A9133D /* Demo-Info.plist */,
+ 283B1AD615564BBD00A9133D /* InfoPlist.strings */,
+ 283B1AD915564BBD00A9133D /* main.m */,
+ 283B1ADB15564BBD00A9133D /* Demo-Prefix.pch */,
+ );
+ name = "Supporting Files";
+ sourceTree = "<group>";
+ };
+ 283B1AF315564D5100A9133D /* NAMapKit */ = {
+ isa = PBXGroup;
+ children = (
+ 283B1AF815564DEA00A9133D /* callout_anchor.png */,
+ 283B1AF915564DEA00A9133D /* callout_anchor@2x.png */,
+ 283B1AFA15564DEA00A9133D /* callout_bg.png */,
+ 283B1AFB15564DEA00A9133D /* callout_bg@2x.png */,
+ 283B1AFC15564DEA00A9133D /* callout_left.png */,
+ 283B1AFD15564DEA00A9133D /* callout_left@2x.png */,
+ 283B1AFE15564DEA00A9133D /* callout_right.png */,
+ 283B1AFF15564DEA00A9133D /* callout_right@2x.png */,
+ 283B1B0015564DEA00A9133D /* NAAnnotation.h */,
+ 283B1B0115564DEA00A9133D /* NAAnnotation.m */,
+ 283B1B0215564DEA00A9133D /* NACallOutView.h */,
+ 283B1B0315564DEA00A9133D /* NACallOutView.m */,
+ 283B1B0415564DEA00A9133D /* NAMapView.h */,
+ 283B1B0515564DEA00A9133D /* NAMapView.m */,
+ 283B1B0615564DEA00A9133D /* NAPinAnnotationView.h */,
+ 283B1B0715564DEA00A9133D /* NAPinAnnotationView.m */,
+ 283B1B0815564DEA00A9133D /* pinGreen.png */,
+ 283B1B0915564DEA00A9133D /* pinGreen@2x.png */,
+ 283B1B0A15564DEA00A9133D /* pinGreenFloating.png */,
+ 283B1B0B15564DEA00A9133D /* pinGreenFloating@2x.png */,
+ 283B1B0C15564DEA00A9133D /* pinPurple.png */,
+ 283B1B0D15564DEA00A9133D /* pinPurple@2x.png */,
+ 283B1B0E15564DEA00A9133D /* pinPurpleFloating.png */,
+ 283B1B0F15564DEA00A9133D /* pinPurpleFloating@2x.png */,
+ 283B1B1015564DEA00A9133D /* pinRed.png */,
+ 283B1B1115564DEA00A9133D /* pinRed@2x.png */,
+ 283B1B1215564DEA00A9133D /* pinRedFloating.png */,
+ 283B1B1315564DEA00A9133D /* pinRedFloating@2x.png */,
+ );
+ name = NAMapKit;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 283B1AC815564BBD00A9133D /* Demo */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 283B1AED15564BBD00A9133D /* Build configuration list for PBXNativeTarget "Demo" */;
+ buildPhases = (
+ 283B1AC515564BBD00A9133D /* Sources */,
+ 283B1AC615564BBD00A9133D /* Frameworks */,
+ 283B1AC715564BBD00A9133D /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Demo;
+ productName = Demo;
+ productReference = 283B1AC915564BBD00A9133D /* Demo.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 283B1AC015564BBD00A9133D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ CLASSPREFIX = NA;
+ LastUpgradeCheck = 0430;
+ ORGANIZATIONNAME = neilang.com;
+ };
+ buildConfigurationList = 283B1AC315564BBD00A9133D /* Build configuration list for PBXProject "Demo" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ );
+ mainGroup = 283B1ABE15564BBD00A9133D;
+ productRefGroup = 283B1ACA15564BBD00A9133D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 283B1AC815564BBD00A9133D /* Demo */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 283B1AC715564BBD00A9133D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 283B1AD815564BBD00A9133D /* InfoPlist.strings in Resources */,
+ 283B1AE715564BBD00A9133D /* NAMasterViewController.xib in Resources */,
+ 283B1B1415564DEA00A9133D /* callout_anchor.png in Resources */,
+ 283B1B1515564DEA00A9133D /* callout_anchor@2x.png in Resources */,
+ 283B1B1615564DEA00A9133D /* callout_bg.png in Resources */,
+ 283B1B1715564DEA00A9133D /* callout_bg@2x.png in Resources */,
+ 283B1B1815564DEA00A9133D /* callout_left.png in Resources */,
+ 283B1B1915564DEA00A9133D /* callout_left@2x.png in Resources */,
+ 283B1B1A15564DEA00A9133D /* callout_right.png in Resources */,
+ 283B1B1B15564DEA00A9133D /* callout_right@2x.png in Resources */,
+ 283B1B2015564DEA00A9133D /* pinGreen.png in Resources */,
+ 283B1B2115564DEA00A9133D /* pinGreen@2x.png in Resources */,
+ 283B1B2215564DEA00A9133D /* pinGreenFloating.png in Resources */,
+ 283B1B2315564DEA00A9133D /* pinGreenFloating@2x.png in Resources */,
+ 283B1B2415564DEA00A9133D /* pinPurple.png in Resources */,
+ 283B1B2515564DEA00A9133D /* pinPurple@2x.png in Resources */,
+ 283B1B2615564DEA00A9133D /* pinPurpleFloating.png in Resources */,
+ 283B1B2715564DEA00A9133D /* pinPurpleFloating@2x.png in Resources */,
+ 283B1B2815564DEA00A9133D /* pinRed.png in Resources */,
+ 283B1B2915564DEA00A9133D /* pinRed@2x.png in Resources */,
+ 283B1B2A15564DEA00A9133D /* pinRedFloating.png in Resources */,
+ 283B1B2B15564DEA00A9133D /* pinRedFloating@2x.png in Resources */,
+ 283B1B2E15564EB500A9133D /* australia.png in Resources */,
+ 283B1B33155651FD00A9133D /* NALoadViaNIBDemoViewController.xib in Resources */,
+ 283B1B3B155659FB00A9133D /* NAInteractiveDemoViewController.xib in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 283B1AC515564BBD00A9133D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 283B1ADA15564BBD00A9133D /* main.m in Sources */,
+ 283B1ADE15564BBD00A9133D /* NAAppDelegate.m in Sources */,
+ 283B1AE115564BBD00A9133D /* NAMasterViewController.m in Sources */,
+ 283B1AF215564D4900A9133D /* NABasicDemoViewController.m in Sources */,
+ 283B1B1C15564DEA00A9133D /* NAAnnotation.m in Sources */,
+ 283B1B1D15564DEA00A9133D /* NACallOutView.m in Sources */,
+ 283B1B1E15564DEA00A9133D /* NAMapView.m in Sources */,
+ 283B1B1F15564DEA00A9133D /* NAPinAnnotationView.m in Sources */,
+ 283B1B32155651FD00A9133D /* NALoadViaNIBDemoViewController.m in Sources */,
+ 283B1B361556557900A9133D /* NAAnimatedDemoViewController.m in Sources */,
+ 283B1B3A155659FB00A9133D /* NAInteractiveDemoViewController.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXVariantGroup section */
+ 283B1AD615564BBD00A9133D /* InfoPlist.strings */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 283B1AD715564BBD00A9133D /* en */,
+ );
+ name = InfoPlist.strings;
+ sourceTree = "<group>";
+ };
+ 283B1AE515564BBD00A9133D /* NAMasterViewController.xib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 283B1AE615564BBD00A9133D /* en */,
+ );
+ name = NAMasterViewController.xib;
+ sourceTree = "<group>";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 283B1AEB15564BBD00A9133D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = 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_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ SDKROOT = iphoneos;
+ };
+ name = Debug;
+ };
+ 283B1AEC15564BBD00A9133D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ CLANG_ENABLE_OBJC_ARC = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ SDKROOT = iphoneos;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 283B1AEE15564BBD00A9133D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "Demo/Demo-Prefix.pch";
+ INFOPLIST_FILE = "Demo/Demo-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 283B1AEF15564BBD00A9133D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ GCC_PREFIX_HEADER = "Demo/Demo-Prefix.pch";
+ INFOPLIST_FILE = "Demo/Demo-Info.plist";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 283B1AC315564BBD00A9133D /* Build configuration list for PBXProject "Demo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 283B1AEB15564BBD00A9133D /* Debug */,
+ 283B1AEC15564BBD00A9133D /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 283B1AED15564BBD00A9133D /* Build configuration list for PBXNativeTarget "Demo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 283B1AEE15564BBD00A9133D /* Debug */,
+ 283B1AEF15564BBD00A9133D /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 283B1AC015564BBD00A9133D /* Project object */;
+}
View
7 Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Workspace
+ version = "1.0">
+ <FileRef
+ location = "self:Demo.xcodeproj">
+ </FileRef>
+</Workspace>
View
38 Demo/Demo-Info.plist
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.neilang.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
View
14 Demo/Demo-Prefix.pch
@@ -0,0 +1,14 @@
+//
+// Prefix header for all source files of the 'Demo' target in the 'Demo' 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
13 Demo/NAAnimatedDemoViewController.h
@@ -0,0 +1,13 @@
+//
+// NAAnimatedDemoViewController.h
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface NAAnimatedDemoViewController : UIViewController
+
+@end
View
50 Demo/NAAnimatedDemoViewController.m
@@ -0,0 +1,50 @@
+//
+// NAAnimatedDemoViewController.m
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import "NAAnimatedDemoViewController.h"
+#import "NAMapView.h"
+#import "NAAnnotation.h"
+
+
+
+@implementation NAAnimatedDemoViewController
+
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ NAMapView *mapView = [[NAMapView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame)-44.0f)];
+
+ mapView.backgroundColor = [UIColor colorWithRed:0.000 green:0.475 blue:0.761 alpha:1.000];
+
+ [mapView displayMap:[UIImage imageNamed:@"australia"]];
+
+ mapView.minimumZoomScale = 0.5;
+ mapView.maximumZoomScale = 1.5;
+
+ [self.view addSubview:mapView];
+
+ NAAnnotation *a0 = [NAAnnotation annotationWithPoint:CGPointMake(63, 379)];
+ NAAnnotation *a1 = [NAAnnotation annotationWithPoint:CGPointMake(130, 340)];
+ NAAnnotation *a2 = [NAAnnotation annotationWithPoint:CGPointMake(200, 311)];
+ NAAnnotation *a3 = [NAAnnotation annotationWithPoint:CGPointMake(308, 304)];
+ NAAnnotation *a4 = [NAAnnotation annotationWithPoint:CGPointMake(404, 302)];
+ NAAnnotation *a5 = [NAAnnotation annotationWithPoint:CGPointMake(472, 367)];
+ NAAnnotation *a6 = [NAAnnotation annotationWithPoint:CGPointMake(530, 422)];
+ NAAnnotation *a7 = [NAAnnotation annotationWithPoint:CGPointMake(541, 488)];
+
+ NSArray *annotations = [NSArray arrayWithObjects:a0, a1, a2, a3, a4, a5, a6, a7, nil];
+
+ [mapView addAnnotations:annotations animated:YES];
+
+}
+
+
+
+@end
View
17 Demo/NAAppDelegate.h
@@ -0,0 +1,17 @@
+//
+// NAAppDelegate.h
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface NAAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@property (strong, nonatomic) UINavigationController *navigationController;
+
+@end
View
57 Demo/NAAppDelegate.m
@@ -0,0 +1,57 @@
+//
+// NAAppDelegate.m
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import "NAAppDelegate.h"
+
+#import "NAMasterViewController.h"
+
+@implementation NAAppDelegate
+
+@synthesize window = _window;
+@synthesize navigationController = _navigationController;
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
+{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ // Override point for customization after application launch.
+
+ NAMasterViewController *masterViewController = [[NAMasterViewController alloc] initWithNibName:@"NAMasterViewController" bundle:nil];
+ self.navigationController = [[UINavigationController alloc] initWithRootViewController:masterViewController];
+ self.window.rootViewController = self.navigationController;
+ [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
13 Demo/NABasicDemoViewController.h
@@ -0,0 +1,13 @@
+//
+// NABasicDemoViewController.h
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface NABasicDemoViewController : UIViewController
+
+@end
View
78 Demo/NABasicDemoViewController.m
@@ -0,0 +1,78 @@
+//
+// NABasicDemoViewController.m
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import "NABasicDemoViewController.h"
+#import "NAMapView.h"
+#import "NAAnnotation.h"
+
+@interface NABasicDemoViewController ()
+
+@end
+
+@implementation NABasicDemoViewController
+
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
+{
+ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
+ if (self) {
+ // Custom initialization
+ }
+ return self;
+}
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ NAMapView *mapView = [[NAMapView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, CGRectGetWidth(self.view.frame), CGRectGetHeight(self.view.frame)-44.0f)];
+
+ mapView.backgroundColor = [UIColor colorWithRed:0.000 green:0.475 blue:0.761 alpha:1.000];
+
+
+ mapView.minimumZoomScale = 0.5;
+ mapView.maximumZoomScale = 1.5;
+
+ [mapView displayMap:[UIImage imageNamed:@"australia"]];
+
+ [self.view addSubview:mapView];
+
+ NAAnnotation *melbourne = [NAAnnotation annotationWithPoint:CGPointMake(543, 489)];
+ melbourne.title = @"Melbourne";
+ melbourne.subtitle = @"I have a subtitle";
+ melbourne.color = NAPinColorGreen;
+
+ [mapView addAnnotation:melbourne animated:NO];
+
+ NAAnnotation * perth = [NAAnnotation annotationWithPoint:CGPointMake(63, 379)];
+ perth.title = @"Perth";
+ perth.subtitle = @"I have a button";
+ perth.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
+ perth.color = NAPinColorRed;
+
+ [mapView addAnnotation:perth animated:YES];
+
+ NAAnnotation * brisbane = [NAAnnotation annotationWithPoint:CGPointMake(679, 302)];
+ brisbane.title = @"Brisbane";
+ brisbane.color = NAPinColorPurple;
+
+ [mapView addAnnotation:brisbane animated:NO];
+
+}
+
+- (void)viewDidUnload
+{
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+
+@end
View
19 Demo/NAInteractiveDemoViewController.h
@@ -0,0 +1,19 @@
+//
+// NAInteractiveDemoViewController.h
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "NAMapView.h"
+
+@interface NAInteractiveDemoViewController : UIViewController
+
+@property (nonatomic, weak) IBOutlet NAMapView *mapView;
+
+-(IBAction)addPin:(id)sender;
+-(IBAction)removePin:(id)sender;
+
+@end
View
72 Demo/NAInteractiveDemoViewController.m
@@ -0,0 +1,72 @@
+//
+// NAInteractiveDemoViewController.m
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import "NAInteractiveDemoViewController.h"
+
+@interface NAInteractiveDemoViewController ()
+ @property (nonatomic, strong) NSMutableArray *annotations;
+ @property (nonatomic, assign) CGSize size;
+@end
+
+@implementation NAInteractiveDemoViewController
+
+@synthesize mapView = _mapView;
+@synthesize annotations = _annotations;
+@synthesize size = _size;
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ self.annotations = [[NSMutableArray alloc] init];
+
+ UIImage *image = [UIImage imageNamed:@"australia"];
+
+ self.mapView.backgroundColor = [UIColor colorWithRed:0.000 green:0.475 blue:0.761 alpha:1.000];
+
+ [self.mapView displayMap:image];
+
+ self.size = image.size;
+}
+
+
+-(IBAction)addPin:(id)sender{
+
+ int x = (arc4random() % (int)self.size.width);
+ int y = (arc4random() % (int)self.size.width);
+
+ CGPoint point = CGPointMake(x, y);
+
+ [self.mapView centreOnPoint:point animated:YES];
+
+ NAAnnotation *annotation = [NAAnnotation annotationWithPoint:point];
+
+ annotation.color = arc4random() % 3;
+
+ [self.mapView addAnnotation:annotation animated:YES];
+
+ [self.annotations addObject:annotation];
+
+}
+
+-(IBAction)removePin:(id)sender{
+
+ if([self.annotations count] <= 0) return;
+
+ int rand = (arc4random() % (int)[self.annotations count]);
+
+ NAAnnotation *annotation = [self.annotations objectAtIndex:rand];
+ [self.annotations removeObjectAtIndex:rand];
+
+ [self.mapView centreOnPoint:annotation.point animated:YES];
+
+ [self.mapView removeAnnotation:annotation];
+
+}
+
+@end
View
296 Demo/NAInteractiveDemoViewController.xib
@@ -0,0 +1,296 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1296</int>
+ <string key="IBDocument.SystemVersion">11D50</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">1181</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBUIButton</string>
+ <string>IBUIView</string>
+ <string>IBUIScrollView</string>
+ <string>IBProxyObject</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="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUIScrollView" id="269711425">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrameSize">{320, 416}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="526644409"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <bool key="IBUIMultipleTouchEnabled">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <float key="IBUIMinimumZoomScale">0.5</float>
+ <float key="IBUIMaximumZoomScale">1.5</float>
+ </object>
+ <object class="IBUIButton" id="526644409">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{16, 359}, {132, 37}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="989997088"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Add Pin</string>
+ <object class="NSColor" key="IBUIHighlightedTitleColor" id="340533198">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor" id="92049941">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ <object class="IBUIFontDescription" key="IBUIFontDescription" id="586598899">
+ <int key="type">2</int>
+ <double key="pointSize">15</double>
+ </object>
+ <object class="NSFont" key="IBUIFont" id="428514504">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">15</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ <object class="IBUIButton" id="989997088">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{168, 359}, {132, 37}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Remove Pin</string>
+ <reference key="IBUIHighlightedTitleColor" ref="340533198"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="92049941"/>
+ <reference key="IBUIFontDescription" ref="586598899"/>
+ <reference key="IBUIFont" ref="428514504"/>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 64}, {320, 416}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="269711425"/>
+ <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"/>
+ <object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics">
+ <bool key="IBUIPrompted">NO</bool>
+ </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="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">mapView</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="269711425"/>
+ </object>
+ <int key="connectionID">7</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">addPin:</string>
+ <reference key="source" ref="526644409"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">8</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">removePin:</string>
+ <reference key="source" ref="989997088"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">9</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="191373211"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="269711425"/>
+ <reference ref="526644409"/>
+ <reference ref="989997088"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </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="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="269711425"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="526644409"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">6</int>
+ <reference key="object" ref="989997088"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">NAInteractiveDemoViewController</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="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="4.CustomClassName">NAMapView</string>
+ <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="6.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">9</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">NAInteractiveDemoViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <dictionary class="NSMutableDictionary" key="actions">
+ <string key="addPin:">id</string>
+ <string key="removePin:">id</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="actionInfosByName">
+ <object class="IBActionInfo" key="addPin:">
+ <string key="name">addPin:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo" key="removePin:">
+ <string key="name">removePin:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </dictionary>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">mapView</string>
+ <string key="NS.object.0">NAMapView</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">mapView</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">mapView</string>
+ <string key="candidateClassName">NAMapView</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NAInteractiveDemoViewController.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">NAMapView</string>
+ <string key="superclassName">UIScrollView</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">showCallOut:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">showCallOut:</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">showCallOut:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NAMapView.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1296" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">1181</string>
+ </data>
+</archive>
View
16 Demo/NALoadViaNIBDemoViewController.h
@@ -0,0 +1,16 @@
+//
+// NALoadViaNIBDemoViewController.h
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "NAMapView.h"
+
+@interface NALoadViaNIBDemoViewController : UIViewController
+
+@property (nonatomic, weak) IBOutlet NAMapView *mapView;
+
+@end
View
67 Demo/NALoadViaNIBDemoViewController.m
@@ -0,0 +1,67 @@
+//
+// NALoadViaNIBDemoViewController.m
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 neilang.com. All rights reserved.
+//
+
+#import "NALoadViaNIBDemoViewController.h"
+
+@implementation NALoadViaNIBDemoViewController
+
+@synthesize mapView = _mapView;
+
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
+{
+ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
+ if (self) {
+ // Custom initialization
+ }
+ return self;
+}
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+
+ [self.mapView displayMap:[UIImage imageNamed:@"australia"]];
+
+ self.mapView.backgroundColor = [UIColor colorWithRed:0.000 green:0.475 blue:0.761 alpha:1.000];
+
+ NAAnnotation *melbourne = [NAAnnotation annotationWithPoint:CGPointMake(543, 489)];
+ melbourne.title = @"Melbourne";
+ melbourne.subtitle = @"I have a subtitle";
+ melbourne.color = NAPinColorGreen;
+
+ [self.mapView addAnnotation:melbourne animated:NO];
+
+ NAAnnotation * perth = [NAAnnotation annotationWithPoint:CGPointMake(63, 379)];
+ perth.title = @"Perth";
+ perth.subtitle = @"I have a button";
+ perth.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
+ perth.color = NAPinColorRed;
+
+ [self.mapView addAnnotation:perth animated:NO];
+
+ NAAnnotation * brisbane = [NAAnnotation annotationWithPoint:CGPointMake(679, 302)];
+ brisbane.title = @"Brisbane";
+ brisbane.color = NAPinColorPurple;
+
+ [self.mapView addAnnotation:brisbane animated:NO];
+
+}
+
+- (void)viewDidUnload
+{
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+ // e.g. self.myOutlet = nil;
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ return (interfaceOrientation == UIInterfaceOrientationPortrait);
+}
+
+@end
View
199 Demo/NALoadViaNIBDemoViewController.xib
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1296</int>
+ <string key="IBDocument.SystemVersion">11D50</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">1181</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUIView</string>
+ <string>IBUIScrollView</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="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUIScrollView" id="670345634">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrameSize">{320, 416}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">2</int>
+ <bytes key="NSRGB">MCAwLjQ3NDUwOTgzNTIgMC43NDkwMTk2MjI4AA</bytes>
+ </object>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <bool key="IBUIMultipleTouchEnabled">YES</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBUIAlwaysBounceVertical">YES</bool>
+ <bool key="IBUIAlwaysBounceHorizontal">YES</bool>
+ <bool key="IBUIShowsHorizontalScrollIndicator">NO</bool>
+ <bool key="IBUIShowsVerticalScrollIndicator">NO</bool>
+ <float key="IBUIMinimumZoomScale">0.5</float>
+ <float key="IBUIMaximumZoomScale">1.5</float>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 64}, {320, 416}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="670345634"/>
+ <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"/>
+ <object class="IBUISimulatedNavigationBarMetrics" key="IBUISimulatedTopBarMetrics">
+ <bool key="IBUIPrompted">NO</bool>
+ </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="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">mapView</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="670345634"/>
+ </object>
+ <int key="connectionID">5</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="191373211"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="670345634"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </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="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="670345634"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">NALoadViaNIBDemoViewController</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="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="4.CustomClassName">NAMapView</string>
+ <string key="4.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">5</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">NALoadViaNIBDemoViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">mapView</string>
+ <string key="NS.object.0">NAMapView</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">mapView</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">mapView</string>
+ <string key="candidateClassName">NAMapView</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NALoadViaNIBDemoViewController.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">NAMapView</string>
+ <string key="superclassName">UIScrollView</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">showCallOut:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="NSMutableDictionary" key="actionInfosByName">
+ <string key="NS.key.0">showCallOut:</string>
+ <object class="IBActionInfo" key="NS.object.0">
+ <string key="name">showCallOut:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NAMapView.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1296" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">1181</string>
+ </data>
+</archive>
View
15 Demo/NAMasterViewController.h
@@ -0,0 +1,15 @@
+//
+// NAMasterViewController.h
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class NADetailViewController;
+
+@interface NAMasterViewController : UITableViewController
+
+@end
View
112 Demo/NAMasterViewController.m
@@ -0,0 +1,112 @@
+//
+// NAMasterViewController.m
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import "NAMasterViewController.h"
+#import "NABasicDemoViewController.h"
+#import "NALoadViaNIBDemoViewController.h"
+#import "NAAnimatedDemoViewController.h"
+#import "NAInteractiveDemoViewController.h"
+
+@implementation NAMasterViewController
+
+- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
+{
+ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
+ if (self) {
+ self.title = @"NAMapKit";
+ }
+ return self;
+}
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+}
+
+- (void)viewDidUnload
+{
+ [super viewDidUnload];
+ // Release any retained subviews of the main view.
+}
+
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
+}
+
+#pragma mark - Table View
+
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+ return 1;
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
+ return 4;
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+ static NSString *CellIdentifier = @"Cell";
+
+ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
+ if (cell == nil) {
+ cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
+ cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+ }
+
+ switch (indexPath.row) {
+ case 0:
+ cell.textLabel.text = @"Basic demo";
+ break;
+ case 1:
+ cell.textLabel.text = @"Load via NIB demo";
+ break;
+ case 2:
+ cell.textLabel.text = @"Animated pins demo";
+ break;
+ case 3:
+ cell.textLabel.text = @"Interactive demo";
+ break;
+ default:
+ cell.textLabel.text = @"???";
+ break;
+ }
+
+ return cell;
+}
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+
+ if(indexPath.row == 0){
+ NABasicDemoViewController *vc = [[NABasicDemoViewController alloc] initWithNibName:nil bundle:nil];
+ [self.navigationController pushViewController:vc animated:YES];
+ return;
+ }
+
+ if(indexPath.row == 1){
+ NALoadViaNIBDemoViewController *vc = [[NALoadViaNIBDemoViewController alloc] initWithNibName:@"NALoadViaNIBDemoViewController" bundle:nil];
+ [self.navigationController pushViewController:vc animated:YES];
+ return;
+ }
+
+ if(indexPath.row == 2){
+ NAAnimatedDemoViewController *vc = [[NAAnimatedDemoViewController alloc] initWithNibName:nil bundle:nil];
+ [self.navigationController pushViewController:vc animated:YES];
+ return;
+ }
+
+ if(indexPath.row == 3){
+ NAInteractiveDemoViewController *vc = [[NAInteractiveDemoViewController alloc] initWithNibName:@"NAInteractiveDemoViewController" bundle:nil];
+ [self.navigationController pushViewController:vc animated:YES];
+ return;
+ }
+
+}
+
+@end
View
BIN  Demo/australia.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
2  Demo/en.lproj/InfoPlist.strings
@@ -0,0 +1,2 @@
+/* Localized versions of Info.plist keys */
+
View
139 Demo/en.lproj/NAMasterViewController.xib
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1280</int>
+ <string key="IBDocument.SystemVersion">11C25</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1919</string>
+ <string key="IBDocument.AppKitVersion">1138.11</string>
+ <string key="IBDocument.HIToolboxVersion">566.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">916</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUITableView</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">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="371349661">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUITableView" id="709618507">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBUIAlwaysBounceVertical">YES</bool>
+ <int key="IBUISeparatorStyle">1</int>
+ <int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
+ <bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
+ <float key="IBUIRowHeight">44</float>
+ <float key="IBUISectionHeaderHeight">22</float>
+ <float key="IBUISectionFooterHeight">22</float>
+ </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="709618507"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">dataSource</string>
+ <reference key="source" ref="709618507"/>
+ <reference key="destination" ref="841351856"/>
+ </object>
+ <int key="connectionID">4</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="709618507"/>
+ <reference key="destination" ref="841351856"/>
+ </object>
+ <int key="connectionID">5</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="371349661"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">2</int>
+ <reference key="object" ref="709618507"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">NAMasterViewController</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">5</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">NAMasterViewController</string>
+ <string key="superclassName">UITableViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/NAMasterViewController.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>
+ <string key="IBCocoaTouchPluginVersion">916</string>
+ </data>
+</archive>
View
18 Demo/main.m
@@ -0,0 +1,18 @@
+//
+// main.m
+// Demo
+//
+// Created by Neil Ang on 6/05/12.
+// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+#import "NAAppDelegate.h"
+
+int main(int argc, char *argv[])
+{
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([NAAppDelegate class]));
+ }
+}
View
1  NAMapKit/NAMapView.h
@@ -15,6 +15,7 @@
- (void)addAnnotation:(NAAnnotation *)annotation animated:(BOOL)animate;
- (void)addAnnotations:(NSArray *)annotations animated:(BOOL)animate;
- (void)centreOnPoint:(CGPoint)point animated:(BOOL)animate;
+- (void)removeAnnotation:(NAAnnotation *)annotation;
- (CGPoint)zoomRelativePoint:(CGPoint)point;
@end
View
1  NAMapKit/NAMapView.m
@@ -127,7 +127,6 @@ - (void)addAnnotations:(NSArray *)annotations animated:(BOOL)animate {
}
}
-// Untested!!
-(void)removeAnnotation:(NAAnnotation *)annotation{
for(NAPinAnnotationView *annotationView in self.annotationViews){
if (annotationView.annotation == annotation) {
Please sign in to comment.
Something went wrong with that request. Please try again.