├── mapDemo
├── en.lproj
│ └── InfoPlist.strings
├── mainViewController.h
├── LocationViewController.h
├── GradientPolylineRenderer.h
├── AppDelegate.h
├── record.txt
├── main.m
├── mapDemo-Prefix.pch
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── mapDemo-Info.plist
├── GradientPolylineOverlay.h
├── AppDelegate.m
├── mainViewController.m
├── GradientPolylineOverlay.m
├── GradientPolylineRenderer.m
└── LocationViewController.m
├── mapDemoTests
├── en.lproj
│ └── InfoPlist.strings
├── mapDemoTests.m
└── mapDemoTests-Info.plist
├── README.md
├── mapDemo.xcodeproj
├── xcuserdata
│ └── bravo.xcuserdatad
│ │ ├── xcdebugger
│ │ └── Breakpoints_v2.xcbkptlist
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── mapDemo.xcscheme
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── mapDemo.xccheckout
└── project.pbxproj
└── .gitignore
/mapDemo/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/mapDemoTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | GradientPolyline
2 | ================
3 | A CoreLocation and MapKit demo (Nike+ like)
4 |
5 | 
6 |
--------------------------------------------------------------------------------
/mapDemo.xcodeproj/xcuserdata/bravo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
--------------------------------------------------------------------------------
/mapDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/mapDemo/mainViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // mainViewController.h
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface mainViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/mapDemo/LocationViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // LocationViewController.h
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-29.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface LocationViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/mapDemo/GradientPolylineRenderer.h:
--------------------------------------------------------------------------------
1 | //
2 | // GradientPolylineRenderer.h
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface GradientPolylineRenderer : MKOverlayPathRenderer
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/mapDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/mapDemo/record.txt:
--------------------------------------------------------------------------------
1 | 23.29097, 112.81595,-1
2 | 23.29081, 112.81591,0.15
3 | 23.29059, 112.81581,0.5
4 | 23.29033, 112.81573,0.55
5 | 23.29015, 112.81566,0.6
6 | 23.29005, 112.81597,0.65
7 | 23.28993, 112.81632,1.2
8 | 23.28984, 112.81661,0.8
9 | 23.29013, 112.81672,0.5
10 | 23.29040, 112.81684,0.8
11 | 23.29069, 112.81692,0.3
12 | 23.29079, 112.81669,0.3
13 | 23.29083, 112.81647,0.6
14 | 23.29096, 112.81603,1.4
15 |
--------------------------------------------------------------------------------
/mapDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "AppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/mapDemo/mapDemo-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #import
8 |
9 | #ifndef __IPHONE_3_0
10 | #warning "This project uses features only available in iOS SDK 3.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | #import
15 | #import
16 | #endif
17 |
--------------------------------------------------------------------------------
/mapDemo.xcodeproj/xcuserdata/bravo.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | mapDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | 49A06B56183D8C7300C71CF2
16 |
17 | primary
18 |
19 |
20 | 49A06B71183D8C7300C71CF2
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/mapDemoTests/mapDemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // mapDemoTests.m
3 | // mapDemoTests
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface mapDemoTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation mapDemoTests
16 |
17 | - (void)setUp
18 | {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown
24 | {
25 | // Put teardown code here. This method is called after the invocation of each test method in the class.
26 | [super tearDown];
27 | }
28 |
29 | - (void)testExample
30 | {
31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/mapDemoTests/mapDemoTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | tt.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/mapDemo/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "ipad",
20 | "size" : "29x29",
21 | "scale" : "1x"
22 | },
23 | {
24 | "idiom" : "ipad",
25 | "size" : "29x29",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "ipad",
30 | "size" : "40x40",
31 | "scale" : "1x"
32 | },
33 | {
34 | "idiom" : "ipad",
35 | "size" : "40x40",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "ipad",
40 | "size" : "76x76",
41 | "scale" : "1x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "76x76",
46 | "scale" : "2x"
47 | }
48 | ],
49 | "info" : {
50 | "version" : 1,
51 | "author" : "xcode"
52 | }
53 | }
--------------------------------------------------------------------------------
/mapDemo/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | },
18 | {
19 | "orientation" : "portrait",
20 | "idiom" : "ipad",
21 | "extent" : "full-screen",
22 | "minimum-system-version" : "7.0",
23 | "scale" : "1x"
24 | },
25 | {
26 | "orientation" : "landscape",
27 | "idiom" : "ipad",
28 | "extent" : "full-screen",
29 | "minimum-system-version" : "7.0",
30 | "scale" : "1x"
31 | },
32 | {
33 | "orientation" : "portrait",
34 | "idiom" : "ipad",
35 | "extent" : "full-screen",
36 | "minimum-system-version" : "7.0",
37 | "scale" : "2x"
38 | },
39 | {
40 | "orientation" : "landscape",
41 | "idiom" : "ipad",
42 | "extent" : "full-screen",
43 | "minimum-system-version" : "7.0",
44 | "scale" : "2x"
45 | }
46 | ],
47 | "info" : {
48 | "version" : 1,
49 | "author" : "xcode"
50 | }
51 | }
--------------------------------------------------------------------------------
/mapDemo/mapDemo-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | com.xinyuan.XinyuanERP
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1.0
25 | LSRequiresIPhoneOS
26 |
27 | UIRequiredDeviceCapabilities
28 |
29 | armv7
30 |
31 | UISupportedInterfaceOrientations
32 |
33 | UIInterfaceOrientationPortrait
34 |
35 | UIBackgroundModes
36 |
37 | location
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/mapDemo.xcodeproj/project.xcworkspace/xcshareddata/mapDemo.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | C92CD0F0-1169-43DB-88FD-3D70367DEF18
9 | IDESourceControlProjectName
10 | mapDemo
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | 4467E682-2E33-4561-B4D8-929B41764E0C
14 | https://github.com/wdanxna/GradientPolyline.git
15 |
16 | IDESourceControlProjectPath
17 | mapDemo.xcodeproj/project.xcworkspace
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | 4467E682-2E33-4561-B4D8-929B41764E0C
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/wdanxna/GradientPolyline.git
25 | IDESourceControlProjectVersion
26 | 110
27 | IDESourceControlProjectWCCIdentifier
28 | 4467E682-2E33-4561-B4D8-929B41764E0C
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | 4467E682-2E33-4561-B4D8-929B41764E0C
36 | IDESourceControlWCCName
37 | GradientPolyline
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/mapDemo/GradientPolylineOverlay.h:
--------------------------------------------------------------------------------
1 | //
2 | // GradientPolylineOverlay.h
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-23.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @interface GradientPolylineOverlay : NSObject {
13 | MKMapPoint *points;
14 | NSUInteger pointCount;
15 | NSUInteger pointSpace;
16 |
17 | MKMapRect boundingMapRect;
18 | pthread_rwlock_t rwLock;
19 | }
20 |
21 | //Initialize the overlay with the starting coordinate.
22 | //The overlay's boundingMapRect will be set to a sufficiently large square
23 | //centered on the starting coordinate.
24 | -(id) initWithCenterCoordinate:(CLLocationCoordinate2D)coord;
25 |
26 | -(id) initWithPoints:(CLLocationCoordinate2D*)_points velocity:(float*)_velocity count:(NSUInteger)_count;
27 |
28 | //Add a location observation. A MKMapRect containing the newly added point
29 | //and the previously added point is returned so that the view can be updated
30 | //int that rectangle. If the added coordinate has not moved far enough from
31 | //the previously added coordinate it will not be added to the list and
32 | //MKMapRectNULL will be returned.
33 | //
34 | -(MKMapRect)addCoordinate:(CLLocationCoordinate2D)coord;
35 |
36 | -(void) lockForReading;
37 |
38 | //The following properties must only be accessed when holding the read lock
39 | // via lockForReading. Once you're done accessing the points, release the
40 | // read lock with unlockForReading.
41 | //
42 | @property (assign) MKMapPoint *points;
43 | @property (readonly) NSUInteger pointCount;
44 | @property (assign) float *velocity;
45 |
46 | -(void) unlockForReading;
47 |
48 |
49 | @end
50 |
--------------------------------------------------------------------------------
/mapDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 | #import "mainViewController.h"
11 | #import "LocationViewController.h"
12 |
13 | @implementation AppDelegate
14 |
15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
16 | {
17 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
18 | // Override point for customization after application launch.
19 | self.window.backgroundColor = [UIColor whiteColor];
20 | [self.window makeKeyAndVisible];
21 |
22 | UITabBarController *tabBarController = [[UITabBarController alloc] init];
23 |
24 |
25 | mainViewController* viewController = [[mainViewController alloc] init];
26 | LocationViewController* lViewController = [[LocationViewController alloc] init];
27 | tabBarController.viewControllers = [NSArray arrayWithObjects: lViewController,viewController, nil];
28 |
29 | lViewController.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFeatured tag:0];
30 | viewController.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorites tag:1];
31 |
32 | self.window.rootViewController = tabBarController;
33 | return YES;
34 | }
35 |
36 | - (void)applicationWillResignActive:(UIApplication *)application
37 | {
38 | // 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.
39 | // 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.
40 | }
41 |
42 | - (void)applicationDidEnterBackground:(UIApplication *)application
43 | {
44 | // 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.
45 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
46 | }
47 |
48 | - (void)applicationWillEnterForeground:(UIApplication *)application
49 | {
50 | // 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.
51 | }
52 |
53 | - (void)applicationDidBecomeActive:(UIApplication *)application
54 | {
55 | // 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.
56 | }
57 |
58 | - (void)applicationWillTerminate:(UIApplication *)application
59 | {
60 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
61 | }
62 |
63 | @end
64 |
--------------------------------------------------------------------------------
/mapDemo/mainViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // mainViewController.m
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import "mainViewController.h"
10 | #import
11 | #import
12 | #import "GradientPolylineRenderer.h"
13 | #import "GradientPolylineOverlay.h"
14 |
15 | @interface mainViewController (){
16 | MKMapView* mapView;
17 | CLLocationManager *locationManager;
18 | }
19 |
20 | @end
21 |
22 | @implementation mainViewController{
23 | GradientPolylineOverlay* polyline;
24 | }
25 |
26 | - (void)viewDidLoad
27 | {
28 | [super viewDidLoad];
29 |
30 | mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
31 | mapView.delegate = self;
32 | [self.view addSubview:mapView];
33 | }
34 |
35 | #pragma mark - mk delegate
36 | -(MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id)overlay{
37 | GradientPolylineRenderer *polylineRenderer = [[GradientPolylineRenderer alloc] initWithOverlay:overlay];
38 | polylineRenderer.lineWidth = 8.0f;
39 | return polylineRenderer;
40 | }
41 |
42 | #pragma mark - setup overlay
43 |
44 | -(void) drawPolyLineFromFile:(NSString*)fileName{
45 | NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
46 | NSString *documentsDirectory = [paths objectAtIndex:0];
47 | NSString *filePath = [NSString stringWithFormat:@"%@/%@", documentsDirectory, fileName];
48 | if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]){
49 | FILE *file = fopen([filePath UTF8String], "r");
50 | char buffer[256];
51 | #define MAX_POINTS 3000
52 | int pointCount = 0;
53 | int pointsMount = MAX_POINTS;
54 |
55 | CLLocationCoordinate2D *points;
56 | float *velocity;
57 | points = malloc(sizeof(CLLocationCoordinate2D)*MAX_POINTS);
58 | velocity = malloc(sizeof(float)*MAX_POINTS);
59 |
60 | while (fgets(buffer, 256, file) != NULL){
61 | NSString* result = [NSString stringWithUTF8String:buffer];
62 | //strip off the newline
63 | result = [result stringByReplacingOccurrencesOfString:@"\n" withString:@""];
64 | //0:latitude, 1:longitude, 2:velocity
65 | NSArray* elements = [result componentsSeparatedByString:@","];
66 | CLLocationCoordinate2D point = CLLocationCoordinate2DMake([elements[0] doubleValue], [elements[1] doubleValue]);
67 | if (pointCount > pointsMount){
68 | //magic number here, needs improvement.
69 | points = realloc(points, 500);
70 | pointsMount += 500;
71 | }
72 | velocity[pointCount] = [elements[2] floatValue];
73 | points[pointCount++] = point;
74 | }
75 | #undef MAX_POINTS
76 | polyline = [[GradientPolylineOverlay alloc] initWithPoints:points velocity:velocity count:pointCount];
77 | [mapView addOverlay:polyline];
78 | }
79 | }
80 |
81 | -(void) viewDidAppear:(BOOL)animated{
82 | [super viewDidAppear:animated];
83 | [mapView removeOverlay:polyline];
84 | [self drawPolyLineFromFile:@"record.txt"];
85 | }
86 |
87 |
88 | - (void)didReceiveMemoryWarning
89 | {
90 | [super didReceiveMemoryWarning];
91 |
92 | }
93 |
94 | @end
95 |
--------------------------------------------------------------------------------
/mapDemo.xcodeproj/xcuserdata/bravo.xcuserdatad/xcschemes/mapDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | #########################
2 | # .gitignore file for Xcode4 / OS X Source projects
3 | #
4 | # Version 2.0
5 | # For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
6 | #
7 | # 2013 updates:
8 | # - fixed the broken "save personal Schemes"
9 | #
10 | # NB: if you are storing "built" products, this WILL NOT WORK,
11 | # and you should use a different .gitignore (or none at all)
12 | # This file is for SOURCE projects, where there are many extra
13 | # files that we want to exclude
14 | #
15 | #########################
16 |
17 | #####
18 | # OS X temporary files that should never be committed
19 |
20 | .DS_Store
21 | *.swp
22 | *.lock
23 | profile
24 |
25 |
26 | ####
27 | # Xcode temporary files that should never be committed
28 | #
29 | # NB: NIB/XIB files still exist even on Storyboard projects, so we want this...
30 |
31 | *~.nib
32 |
33 |
34 | ####
35 | # Xcode build files -
36 | #
37 | # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData"
38 |
39 | DerivedData/
40 |
41 | # NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build"
42 |
43 | build/
44 |
45 |
46 | #####
47 | # Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
48 | #
49 | # This is complicated:
50 | #
51 | # SOMETIMES you need to put this file in version control.
52 | # Apple designed it poorly - if you use "custom executables", they are
53 | # saved in this file.
54 | # 99% of projects do NOT use those, so they do NOT want to version control this file.
55 | # ..but if you're in the 1%, comment out the line "*.pbxuser"
56 |
57 | *.pbxuser
58 | *.mode1v3
59 | *.mode2v3
60 | *.perspectivev3
61 | # NB: also, whitelist the default ones, some projects need to use these
62 | !default.pbxuser
63 | !default.mode1v3
64 | !default.mode2v3
65 | !default.perspectivev3
66 |
67 |
68 | ####
69 | # Xcode 4 - semi-personal settings
70 | #
71 | #
72 | # OPTION 1: ---------------------------------
73 | # throw away ALL personal settings (including custom schemes!
74 | # - unless they are "shared")
75 | #
76 | # NB: this is exclusive with OPTION 2 below
77 |
78 | xcuserdata
79 | UserInterfaceState.xcuserstate
80 |
81 | # OPTION 2: ---------------------------------
82 | # get rid of ALL personal settings, but KEEP SOME OF THEM
83 | # - NB: you must manually uncomment the bits you want to keep
84 | #
85 | # NB: this is exclusive with OPTION 1 above
86 | #
87 | #xcuserdata/**/*
88 |
89 | # (requires option 2 above): Personal Schemes
90 | #
91 | #!xcuserdata/**/xcschemes/*
92 |
93 | ####
94 | # XCode 4 workspaces - more detailed
95 | #
96 | # Workspaces are important! They are a core feature of Xcode - don't exclude them :)
97 | #
98 | # Workspace layout is quite spammy. For reference:
99 | #
100 | # /(root)/
101 | # /(project-name).xcodeproj/
102 | # project.pbxproj
103 | # /project.xcworkspace/
104 | # contents.xcworkspacedata
105 | # /xcuserdata/
106 | # /(your name)/xcuserdatad/
107 | # UserInterfaceState.xcuserstate
108 | # /xcsshareddata/
109 | # /xcschemes/
110 | # (shared scheme name).xcscheme
111 | # /xcuserdata/
112 | # /(your name)/xcuserdatad/
113 | # (private scheme).xcscheme
114 | # xcschememanagement.plist
115 | #
116 | #
117 |
118 | ####
119 | # Xcode 4 - Deprecated classes
120 | #
121 | # Allegedly, if you manually "deprecate" your classes, they get moved here.
122 | #
123 | # We're using source-control, so this is a "feature" that we do not want!
124 |
125 | *.moved-aside
126 |
127 | ####
128 | # Cocoapods: cocoapods.org
129 | #
130 | # Ignoring these files means that whoever uses the code will first have to run:
131 | # pod install
132 | # in the App.xcodeproj directory.
133 | # This ensures the latest dependencies are used.
134 | Pods/
135 | Podfile.lock
136 |
137 |
138 | ####
139 | # UNKNOWN: recommended by others, but I can't discover what these files are
140 | #
141 | # ...none. Everything is now explained.
142 |
--------------------------------------------------------------------------------
/mapDemo/GradientPolylineOverlay.m:
--------------------------------------------------------------------------------
1 | //
2 | // GradientPolylineOverlay.m
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-23.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import "GradientPolylineOverlay.h"
10 | #import
11 |
12 | #define INITIAL_POINT_SPACE 1000
13 | #define MINIMUM_DELTA_METERS 10.0
14 |
15 | @implementation GradientPolylineOverlay{
16 | }
17 |
18 | @synthesize points, pointCount, velocity;
19 |
20 | -(id) initWithCenterCoordinate:(CLLocationCoordinate2D)coord{
21 | self = [super init];
22 | if (self){
23 | //initialize point storage and place this first coordinate in it
24 | pointSpace = INITIAL_POINT_SPACE;
25 | points = malloc(sizeof(MKMapPoint)*pointSpace);
26 | points[0] = MKMapPointForCoordinate(coord);
27 | pointCount = 1;
28 |
29 | //bite off up to 1/4 of the world to draw into
30 | MKMapPoint origin = points[0];
31 | origin.x -= MKMapSizeWorld.width/8.0;
32 | origin.y -= MKMapSizeWorld.height/8.0;
33 | MKMapSize size = MKMapSizeWorld;
34 | size.width /=4.0;
35 | size.height /=4.0;
36 | boundingMapRect = (MKMapRect) {origin, size};
37 | MKMapRect worldRect = MKMapRectMake(0, 0, MKMapSizeWorld.width, MKMapSizeWorld.height);
38 | boundingMapRect = MKMapRectIntersection(boundingMapRect, worldRect);
39 |
40 | // initialize read-write lock for drawing and updates
41 | pthread_rwlock_init(&rwLock,NULL);
42 | }
43 | return self;
44 | }
45 |
46 | -(id) initWithPoints:(CLLocationCoordinate2D*)_points velocity:(float *)_velocity count:(NSUInteger)_count{
47 | self = [super init];
48 | if (self){
49 | pointCount = _count;
50 | self.points = malloc(sizeof(MKMapPoint)*pointCount);
51 | for (int i=0; i<_count; i++){
52 | self.points[i] = MKMapPointForCoordinate(_points[i]);
53 | }
54 |
55 | self.velocity = malloc(sizeof(float)*pointCount);
56 | for (int i=0; i<_count;i++){
57 | self.velocity[i] = _velocity[i];
58 | }
59 |
60 | //bite off up to 1/4 of the world to draw into
61 | MKMapPoint origin = points[0];
62 | origin.x -= MKMapSizeWorld.width/8.0;
63 | origin.y -= MKMapSizeWorld.height/8.0;
64 | MKMapSize size = MKMapSizeWorld;
65 | size.width /=4.0;
66 | size.height /=4.0;
67 | boundingMapRect = (MKMapRect) {origin, size};
68 | MKMapRect worldRect = MKMapRectMake(0, 0, MKMapSizeWorld.width, MKMapSizeWorld.height);
69 | boundingMapRect = MKMapRectIntersection(boundingMapRect, worldRect);
70 |
71 | // initialize read-write lock for drawing and updates
72 | pthread_rwlock_init(&rwLock,NULL);
73 | }
74 | return self;
75 | }
76 |
77 | -(void)dealloc{
78 | free(points);
79 | free(velocity);
80 | pthread_rwlock_destroy(&rwLock);
81 | }
82 |
83 | //center
84 | -(CLLocationCoordinate2D)coordinate{
85 | return MKCoordinateForMapPoint(points[0]);
86 | }
87 |
88 | -(MKMapRect)boundingMapRect{
89 | return boundingMapRect;
90 | }
91 |
92 | -(void) lockForReading{
93 | pthread_rwlock_rdlock(&rwLock);
94 | }
95 |
96 | -(void) unlockForReading{
97 | pthread_rwlock_unlock(&rwLock);
98 | }
99 |
100 |
101 | -(MKMapRect)addCoordinate:(CLLocationCoordinate2D)coord{
102 | //Acquire the write lock because we are going to changing the list of points
103 | pthread_rwlock_wrlock(&rwLock);
104 |
105 | //Convert a CLLocationCoordinate2D to an MKMapPoint
106 | MKMapPoint newPoint = MKMapPointForCoordinate(coord);
107 | MKMapPoint prevPoint = points[pointCount-1];
108 |
109 | //Get the distance between this new point and previous point
110 | CLLocationDistance metersApart = MKMetersBetweenMapPoints(newPoint, prevPoint);
111 | MKMapRect updateRect = MKMapRectNull;
112 |
113 | if (metersApart > MINIMUM_DELTA_METERS){
114 | //Grow the points array if necessary
115 | if (pointSpace == pointCount){
116 | pointSpace *= 2;
117 | points = realloc(points, sizeof(MKMapPoint) * pointSpace);
118 | }
119 |
120 | //Add the new point to points array
121 | points[pointCount] = newPoint;
122 | pointCount++;
123 |
124 | //Compute MKMapRect bounding prevPoint and newPoint
125 | double minX = MIN(newPoint.x,prevPoint.x);
126 | double minY = MIN(newPoint.y,prevPoint.y);
127 | double maxX = MAX(newPoint.x, prevPoint.x);
128 | double maxY = MAX(newPoint.y, prevPoint.y);
129 |
130 | updateRect = MKMapRectMake(minX, minY, maxX - minX, maxY - minY);
131 | }
132 |
133 | pthread_rwlock_unlock(&rwLock);
134 |
135 | return updateRect;
136 | }
137 |
138 | @end
139 |
--------------------------------------------------------------------------------
/mapDemo/GradientPolylineRenderer.m:
--------------------------------------------------------------------------------
1 | //
2 | // GradientPolylineRenderer.m
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-21.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import "GradientPolylineRenderer.h"
10 | #import
11 | #import "GradientPolylineOverlay.h"
12 |
13 | #define V_MAX 5.0
14 | #define V_MIN 2.0
15 | #define H_MAX 0.3
16 | #define H_MIN 0.03
17 |
18 | @implementation GradientPolylineRenderer{
19 | float* hues;
20 | pthread_rwlock_t rwLock;
21 | GradientPolylineOverlay* polyline;
22 | }
23 |
24 | -(id) initWithOverlay:(id)overlay{
25 | self = [super initWithOverlay:overlay];
26 | if (self){
27 | pthread_rwlock_init(&rwLock,NULL);
28 | polyline = ((GradientPolylineOverlay*)self.overlay);
29 | float *velocity = polyline.velocity;
30 | int count = (int)polyline.pointCount;
31 | [self velocity:velocity ToHue:&hues count:count];
32 | [self createPath];
33 | }
34 | return self;
35 | }
36 | /**
37 | * Convert velocity to Hue using specific formular.
38 | *
39 | * H(v) = Hmax, (v > Vmax)
40 | * = Hmin + ((v-Vmin)*(Hmax-Hmin))/(Vmax-Vmin), (Vmin <= v <= Vmax)
41 | * = Hmin, (v < Vmin)
42 | *
43 | * @param velocity Velocity list.
44 | * @param count count of velocity list.
45 | *
46 | * @return An array of hues mapping each velocity.
47 | */
48 | -(void) velocity:(float*)velocity ToHue:(float**)_hue count:(int)count{
49 | *_hue = malloc(sizeof(float)*count);
50 | for (int i=0;i V_MAX) ? V_MAX : curVelo);
53 | (*_hue)[i] = H_MIN + ((curVelo-V_MIN)*(H_MAX-H_MIN))/(V_MAX-V_MIN);
54 | }
55 | }
56 |
57 | -(void) createPath{
58 | CGMutablePathRef path = CGPathCreateMutable();
59 | BOOL pathIsEmpty = YES;
60 | for (int i=0;i< polyline.pointCount;i++){
61 | CGPoint point = [self pointForMapPoint:polyline.points[i]];
62 | if (pathIsEmpty){
63 | CGPathMoveToPoint(path, nil, point.x, point.y);
64 | pathIsEmpty = NO;
65 | } else {
66 | CGPathAddLineToPoint(path, nil, point.x, point.y);
67 | }
68 | }
69 |
70 | pthread_rwlock_wrlock(&rwLock);
71 | self.path = path; //<—— don't forget this line.
72 | pthread_rwlock_unlock(&rwLock);
73 | }
74 |
75 | //-(BOOL)canDrawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale{
76 | // CGRect pointsRect = CGPathGetBoundingBox(self.path);
77 | // CGRect mapRectCG = [self rectForMapRect:mapRect];
78 | // return CGRectIntersectsRect(pointsRect, mapRectCG);
79 | //}
80 |
81 |
82 | -(void) drawMapRect:(MKMapRect)mapRect zoomScale:(MKZoomScale)zoomScale inContext:(CGContextRef)context{
83 |
84 | //put this blok into the canDraw method cause problem
85 | CGRect pointsRect = CGPathGetBoundingBox(self.path);
86 | CGRect mapRectCG = [self rectForMapRect:mapRect];
87 | if (!CGRectIntersectsRect(pointsRect, mapRectCG))return;
88 |
89 |
90 | UIColor* pcolor,*ccolor;
91 | for (int i=0;i< polyline.pointCount;i++){
92 | CGPoint point = [self pointForMapPoint:polyline.points[i]];
93 | CGMutablePathRef path = CGPathCreateMutable();
94 | ccolor = [UIColor colorWithHue:hues[i] saturation:1.0f brightness:1.0f alpha:1.0f];
95 | if (i==0){
96 | CGPathMoveToPoint(path, nil, point.x, point.y);
97 | } else {
98 | CGPoint prevPoint = [self pointForMapPoint:polyline.points[i-1]];
99 | CGPathMoveToPoint(path, nil, prevPoint.x, prevPoint.y);
100 | CGPathAddLineToPoint(path, nil, point.x, point.y);
101 |
102 | CGFloat pc_r,pc_g,pc_b,pc_a,
103 | cc_r,cc_g,cc_b,cc_a;
104 |
105 | [pcolor getRed:&pc_r green:&pc_g blue:&pc_b alpha:&pc_a];
106 | [ccolor getRed:&cc_r green:&cc_g blue:&cc_b alpha:&cc_a];
107 |
108 | CGFloat gradientColors[8] = {pc_r,pc_g,pc_b,pc_a,
109 | cc_r,cc_g,cc_b,cc_a};
110 |
111 | CGFloat gradientLocation[2] = {0,1};
112 | CGContextSaveGState(context);
113 | CGFloat lineWidth = CGContextConvertSizeToUserSpace(context, (CGSize){self.lineWidth,self.lineWidth}).width;
114 | CGPathRef pathToFill = CGPathCreateCopyByStrokingPath(path, NULL, lineWidth, self.lineCap, self.lineJoin, self.miterLimit);
115 | CGContextAddPath(context, pathToFill);
116 | CGContextClip(context);
117 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
118 | CGGradientRef gradient = CGGradientCreateWithColorComponents(colorSpace, gradientColors, gradientLocation, 2);
119 | CGColorSpaceRelease(colorSpace);
120 | CGPoint gradientStart = prevPoint;
121 | CGPoint gradientEnd = point;
122 | CGContextDrawLinearGradient(context, gradient, gradientStart, gradientEnd, kCGGradientDrawsAfterEndLocation);
123 | CGGradientRelease(gradient);
124 | CGContextRestoreGState(context);
125 | }
126 | pcolor = [UIColor colorWithCGColor:ccolor.CGColor];
127 | }
128 |
129 | }
130 | @end
131 |
--------------------------------------------------------------------------------
/mapDemo/LocationViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // LocationViewController.m
3 | // mapDemo
4 | //
5 | // Created by bravo on 13-11-29.
6 | // Copyright (c) 2013年 bravo. All rights reserved.
7 | //
8 |
9 | #import "LocationViewController.h"
10 | #import
11 |
12 | static int MAX_LOCATIONS = 3000;
13 |
14 | @interface LocationViewController (){
15 | CLLocationManager *locationManager;
16 | CLLocationCoordinate2D *allLocations;
17 | float *allSpeed;
18 | int locationCount;
19 | UILabel *label;
20 | UILabel *signal;
21 | }
22 |
23 | @end
24 |
25 | @implementation LocationViewController
26 |
27 | -(id) init{
28 | self = [super init];
29 | if (self){
30 | locationManager = [[CLLocationManager alloc] init];
31 | locationManager.desiredAccuracy = kCLLocationAccuracyBest;
32 | locationManager.delegate = self;
33 | self.view.frame = [UIScreen mainScreen].bounds;
34 |
35 | locationCount = 0;
36 | allLocations = malloc(sizeof(CLLocationCoordinate2D)*MAX_LOCATIONS);
37 |
38 | allSpeed = malloc(sizeof(float)*MAX_LOCATIONS);
39 |
40 | UIButton *start = [UIButton buttonWithType:UIButtonTypeSystem];
41 | start.frame = CGRectMake(100, 50, 100, 80);
42 | [start setTitle:@"start" forState:UIControlStateNormal];
43 | [start addTarget:self action:@selector(startAction) forControlEvents:UIControlEventTouchUpInside];
44 | start.tintColor =[UIColor greenColor];
45 |
46 | UIButton *stop = [UIButton buttonWithType:UIButtonTypeSystem];
47 | stop.frame = CGRectMake(100, 200, 100, 80);
48 | [stop setTitle:@"Stop" forState:UIControlStateNormal];
49 | [stop addTarget:self action:@selector(stopAction) forControlEvents:UIControlEventTouchUpInside];
50 | stop.tintColor =[UIColor greenColor];
51 |
52 | label = [[UILabel alloc] initWithFrame:CGRectMake(5, 290, 300, 50)];
53 | label.textColor = [UIColor greenColor];
54 | label.textAlignment = NSTextAlignmentCenter;
55 |
56 | signal = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 300, 50)];
57 | signal.textColor = [UIColor greenColor];
58 | signal.textAlignment = NSTextAlignmentLeft;
59 |
60 | self.view.backgroundColor = [UIColor blackColor];
61 | [self.view addSubview:signal];
62 | [self.view addSubview:label];
63 | [self.view addSubview:start];
64 | [self.view addSubview:stop];
65 |
66 |
67 |
68 | }
69 | return self;
70 | }
71 |
72 | #pragma - event
73 | -(void) startAction{
74 | [locationManager startUpdatingLocation];
75 | }
76 |
77 | -(void) stopAction{
78 | [locationManager stopUpdatingLocation];
79 |
80 | NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
81 | NSString *documentsDirectory = [paths objectAtIndex:0];
82 | NSString *filePath = [NSString stringWithFormat:@"%@/%@",documentsDirectory,@"record.txt"];
83 |
84 | NSString *text = @"";
85 | for (int i=0;i 163)
112 | {
113 | signal.text = @"POOR";
114 | signal.textColor = [UIColor orangeColor];
115 | }
116 | else if (location.horizontalAccuracy > 48)
117 | {
118 | signal.text = @"AVERAGE";
119 | signal.textColor = [UIColor yellowColor];
120 | }
121 | else
122 | {
123 | signal.text = @"STRONG";
124 | signal.textColor = [UIColor greenColor];
125 | }
126 | CLLocationCoordinate2D currentlocation = location.coordinate;
127 | float currentSpeed = ((CLLocation*)locations.lastObject).speed;
128 | NSString *tstr = [NSString stringWithFormat:@"%f,%f,%f",currentlocation.latitude,currentlocation.longitude,currentSpeed];
129 | label.text = tstr;
130 | if (locationCount-1 > MAX_LOCATIONS ){
131 | allLocations = realloc(allLocations, sizeof(CLLocationCoordinate2D)*500);
132 | allSpeed = realloc(allSpeed, sizeof(float)*500);
133 | MAX_LOCATIONS+= 500;
134 | }
135 | allSpeed[locationCount] = currentSpeed;
136 | allLocations[locationCount++] = currentlocation;
137 | }
138 |
139 | #pragma mark - gps corecteness
140 | -(CLLocationCoordinate2D) transfrom:(CLLocationCoordinate2D)oldCoord{
141 | static double a = 6378245.0;
142 | static double ee = 0.00669342162296594323;
143 |
144 | if ([self outOfChina:oldCoord]){
145 | return oldCoord;
146 | }
147 | double dLat = [self transformLat:oldCoord.longitude - 105.0 y:oldCoord.latitude - 35.0];
148 | double dLon =[self transformLon:oldCoord.longitude - 105.0 y:oldCoord.latitude - 35.0];
149 | double radLat = oldCoord.latitude / 180.0 * M_PI;
150 |
151 | double magic = sin(radLat);
152 | magic = 1 - ee * magic * magic;
153 | double sqrtMagic = sqrt(magic);
154 |
155 | dLat = (dLat * 180.0) / ((a*(1-ee)) / (magic * sqrtMagic) * M_PI);
156 | dLon = (dLon * 180.0) / (a / sqrtMagic * cos(radLat) * M_PI);
157 |
158 | return CLLocationCoordinate2DMake(oldCoord.latitude+dLat, oldCoord.longitude+dLon);
159 | }
160 |
161 | -(double) transformLat:(double)x y:(double)y{
162 | double ret = -100.0 + 2.0 * x + 3.0 * y + 0.2 * y * y + 0.1 * x * y + 0.2 * sqrt(ABS(x));
163 | ret += (20.0 * sin(6.0 * x * M_PI) + 20.0 * sin(2.0 * x * M_PI)) * 2.0 / 3.0;
164 | ret += (20.0 * sin(y * M_PI) + 40.0 * sin(y / 3.0 * M_PI)) * 2.0 / 3.0;
165 | ret += (160.0 * sin(y / 12.0 * M_PI) + 320 *sin(y * M_PI / 30.0)) * 2.0 / 3.0;
166 | return ret;
167 | }
168 |
169 | -(double) transformLon:(double)x y:(double)y{
170 | double ret = 300.0 + x + 2.0 * y + 0.1 * x * x + 0.1 * x * y + 0.1 * sqrt(ABS(x));
171 | ret += (20.0 * sin(6.0 * x * M_PI) + 20.0 * sin(2.0 * x * M_PI)) * 2.0 / 3.0;
172 | ret += (20.0 * sin(x * M_PI) + 40.0 * sin(x / 3.0 * M_PI)) * 2.0 / 3.0;
173 | ret += (150.0 * sin(x / 12.0 * M_PI) + 300.0 * sin(x / 30.0 * M_PI)) * 2.0 / 3.0;
174 | return ret;
175 | }
176 |
177 | -(BOOL) outOfChina:(CLLocationCoordinate2D)coord{
178 | if (coord.longitude < 72.004 || coord.longitude > 137.8347)
179 | return true;
180 | if (coord.latitude < 0.8293 || coord.latitude > 55.8271)
181 | return true;
182 | return false;
183 | }
184 |
185 | #pragma - mark origin
186 |
187 |
188 |
189 | - (void)viewDidLoad
190 | {
191 | [super viewDidLoad];
192 | // Do any additional setup after loading the view.
193 | }
194 |
195 | - (void)didReceiveMemoryWarning
196 | {
197 | [super didReceiveMemoryWarning];
198 | // Dispose of any resources that can be recreated.
199 | }
200 |
201 | -(void) dealloc{
202 | free(allLocations);
203 | free(allSpeed);
204 | }
205 |
206 | @end
207 |
--------------------------------------------------------------------------------
/mapDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 49578D1A18481D3200C1117A /* LocationViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 49578D1918481D3200C1117A /* LocationViewController.m */; };
11 | 49A06B5B183D8C7300C71CF2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B5A183D8C7300C71CF2 /* Foundation.framework */; };
12 | 49A06B5D183D8C7300C71CF2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B5C183D8C7300C71CF2 /* CoreGraphics.framework */; };
13 | 49A06B5F183D8C7300C71CF2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B5E183D8C7300C71CF2 /* UIKit.framework */; };
14 | 49A06B65183D8C7300C71CF2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 49A06B63183D8C7300C71CF2 /* InfoPlist.strings */; };
15 | 49A06B67183D8C7300C71CF2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 49A06B66183D8C7300C71CF2 /* main.m */; };
16 | 49A06B6B183D8C7300C71CF2 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 49A06B6A183D8C7300C71CF2 /* AppDelegate.m */; };
17 | 49A06B6D183D8C7300C71CF2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 49A06B6C183D8C7300C71CF2 /* Images.xcassets */; };
18 | 49A06B74183D8C7300C71CF2 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B73183D8C7300C71CF2 /* XCTest.framework */; };
19 | 49A06B75183D8C7300C71CF2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B5A183D8C7300C71CF2 /* Foundation.framework */; };
20 | 49A06B76183D8C7300C71CF2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B5E183D8C7300C71CF2 /* UIKit.framework */; };
21 | 49A06B7E183D8C7300C71CF2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 49A06B7C183D8C7300C71CF2 /* InfoPlist.strings */; };
22 | 49A06B80183D8C7300C71CF2 /* mapDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 49A06B7F183D8C7300C71CF2 /* mapDemoTests.m */; };
23 | 49A06B8B183D8CA300C71CF2 /* mainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 49A06B8A183D8CA300C71CF2 /* mainViewController.m */; };
24 | 49A06B8D183D8D7300C71CF2 /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B8C183D8D7300C71CF2 /* CoreLocation.framework */; };
25 | 49A06B8F183D8D7B00C71CF2 /* MapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49A06B8E183D8D7B00C71CF2 /* MapKit.framework */; };
26 | 49A06B91183DA27300C71CF2 /* record.txt in Resources */ = {isa = PBXBuildFile; fileRef = 49A06B90183DA27300C71CF2 /* record.txt */; };
27 | 49A06B94183DB56600C71CF2 /* GradientPolylineRenderer.m in Sources */ = {isa = PBXBuildFile; fileRef = 49A06B93183DB56600C71CF2 /* GradientPolylineRenderer.m */; };
28 | 49ABDEFA184076AC001A6439 /* GradientPolylineOverlay.m in Sources */ = {isa = PBXBuildFile; fileRef = 49ABDEF9184076AC001A6439 /* GradientPolylineOverlay.m */; };
29 | /* End PBXBuildFile section */
30 |
31 | /* Begin PBXContainerItemProxy section */
32 | 49A06B77183D8C7300C71CF2 /* PBXContainerItemProxy */ = {
33 | isa = PBXContainerItemProxy;
34 | containerPortal = 49A06B4F183D8C7300C71CF2 /* Project object */;
35 | proxyType = 1;
36 | remoteGlobalIDString = 49A06B56183D8C7300C71CF2;
37 | remoteInfo = mapDemo;
38 | };
39 | /* End PBXContainerItemProxy section */
40 |
41 | /* Begin PBXFileReference section */
42 | 49578D1818481D3200C1117A /* LocationViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocationViewController.h; sourceTree = ""; };
43 | 49578D1918481D3200C1117A /* LocationViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LocationViewController.m; sourceTree = ""; };
44 | 49A06B57183D8C7300C71CF2 /* mapDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mapDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | 49A06B5A183D8C7300C71CF2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
46 | 49A06B5C183D8C7300C71CF2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
47 | 49A06B5E183D8C7300C71CF2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
48 | 49A06B62183D8C7300C71CF2 /* mapDemo-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "mapDemo-Info.plist"; sourceTree = ""; };
49 | 49A06B64183D8C7300C71CF2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
50 | 49A06B66183D8C7300C71CF2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
51 | 49A06B68183D8C7300C71CF2 /* mapDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "mapDemo-Prefix.pch"; sourceTree = ""; };
52 | 49A06B69183D8C7300C71CF2 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
53 | 49A06B6A183D8C7300C71CF2 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
54 | 49A06B6C183D8C7300C71CF2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
55 | 49A06B72183D8C7300C71CF2 /* mapDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = mapDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
56 | 49A06B73183D8C7300C71CF2 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
57 | 49A06B7B183D8C7300C71CF2 /* mapDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "mapDemoTests-Info.plist"; sourceTree = ""; };
58 | 49A06B7D183D8C7300C71CF2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
59 | 49A06B7F183D8C7300C71CF2 /* mapDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = mapDemoTests.m; sourceTree = ""; };
60 | 49A06B89183D8CA300C71CF2 /* mainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mainViewController.h; sourceTree = ""; };
61 | 49A06B8A183D8CA300C71CF2 /* mainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = mainViewController.m; sourceTree = ""; };
62 | 49A06B8C183D8D7300C71CF2 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
63 | 49A06B8E183D8D7B00C71CF2 /* MapKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MapKit.framework; path = System/Library/Frameworks/MapKit.framework; sourceTree = SDKROOT; };
64 | 49A06B90183DA27300C71CF2 /* record.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = record.txt; sourceTree = ""; };
65 | 49A06B92183DB56600C71CF2 /* GradientPolylineRenderer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GradientPolylineRenderer.h; sourceTree = ""; };
66 | 49A06B93183DB56600C71CF2 /* GradientPolylineRenderer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GradientPolylineRenderer.m; sourceTree = ""; };
67 | 49ABDEF8184076AC001A6439 /* GradientPolylineOverlay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GradientPolylineOverlay.h; sourceTree = ""; };
68 | 49ABDEF9184076AC001A6439 /* GradientPolylineOverlay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GradientPolylineOverlay.m; sourceTree = ""; };
69 | /* End PBXFileReference section */
70 |
71 | /* Begin PBXFrameworksBuildPhase section */
72 | 49A06B54183D8C7300C71CF2 /* Frameworks */ = {
73 | isa = PBXFrameworksBuildPhase;
74 | buildActionMask = 2147483647;
75 | files = (
76 | 49A06B8F183D8D7B00C71CF2 /* MapKit.framework in Frameworks */,
77 | 49A06B8D183D8D7300C71CF2 /* CoreLocation.framework in Frameworks */,
78 | 49A06B5D183D8C7300C71CF2 /* CoreGraphics.framework in Frameworks */,
79 | 49A06B5F183D8C7300C71CF2 /* UIKit.framework in Frameworks */,
80 | 49A06B5B183D8C7300C71CF2 /* Foundation.framework in Frameworks */,
81 | );
82 | runOnlyForDeploymentPostprocessing = 0;
83 | };
84 | 49A06B6F183D8C7300C71CF2 /* Frameworks */ = {
85 | isa = PBXFrameworksBuildPhase;
86 | buildActionMask = 2147483647;
87 | files = (
88 | 49A06B74183D8C7300C71CF2 /* XCTest.framework in Frameworks */,
89 | 49A06B76183D8C7300C71CF2 /* UIKit.framework in Frameworks */,
90 | 49A06B75183D8C7300C71CF2 /* Foundation.framework in Frameworks */,
91 | );
92 | runOnlyForDeploymentPostprocessing = 0;
93 | };
94 | /* End PBXFrameworksBuildPhase section */
95 |
96 | /* Begin PBXGroup section */
97 | 49A06B4E183D8C7300C71CF2 = {
98 | isa = PBXGroup;
99 | children = (
100 | 49A06B60183D8C7300C71CF2 /* mapDemo */,
101 | 49A06B79183D8C7300C71CF2 /* mapDemoTests */,
102 | 49A06B59183D8C7300C71CF2 /* Frameworks */,
103 | 49A06B58183D8C7300C71CF2 /* Products */,
104 | );
105 | sourceTree = "";
106 | };
107 | 49A06B58183D8C7300C71CF2 /* Products */ = {
108 | isa = PBXGroup;
109 | children = (
110 | 49A06B57183D8C7300C71CF2 /* mapDemo.app */,
111 | 49A06B72183D8C7300C71CF2 /* mapDemoTests.xctest */,
112 | );
113 | name = Products;
114 | sourceTree = "";
115 | };
116 | 49A06B59183D8C7300C71CF2 /* Frameworks */ = {
117 | isa = PBXGroup;
118 | children = (
119 | 49A06B8E183D8D7B00C71CF2 /* MapKit.framework */,
120 | 49A06B8C183D8D7300C71CF2 /* CoreLocation.framework */,
121 | 49A06B5A183D8C7300C71CF2 /* Foundation.framework */,
122 | 49A06B5C183D8C7300C71CF2 /* CoreGraphics.framework */,
123 | 49A06B5E183D8C7300C71CF2 /* UIKit.framework */,
124 | 49A06B73183D8C7300C71CF2 /* XCTest.framework */,
125 | );
126 | name = Frameworks;
127 | sourceTree = "";
128 | };
129 | 49A06B60183D8C7300C71CF2 /* mapDemo */ = {
130 | isa = PBXGroup;
131 | children = (
132 | 49A06B69183D8C7300C71CF2 /* AppDelegate.h */,
133 | 49A06B6A183D8C7300C71CF2 /* AppDelegate.m */,
134 | 49A06B6C183D8C7300C71CF2 /* Images.xcassets */,
135 | 49A06B61183D8C7300C71CF2 /* Supporting Files */,
136 | 49A06B89183D8CA300C71CF2 /* mainViewController.h */,
137 | 49A06B8A183D8CA300C71CF2 /* mainViewController.m */,
138 | 49A06B92183DB56600C71CF2 /* GradientPolylineRenderer.h */,
139 | 49A06B93183DB56600C71CF2 /* GradientPolylineRenderer.m */,
140 | 49ABDEF8184076AC001A6439 /* GradientPolylineOverlay.h */,
141 | 49ABDEF9184076AC001A6439 /* GradientPolylineOverlay.m */,
142 | 49578D1818481D3200C1117A /* LocationViewController.h */,
143 | 49578D1918481D3200C1117A /* LocationViewController.m */,
144 | );
145 | path = mapDemo;
146 | sourceTree = "";
147 | };
148 | 49A06B61183D8C7300C71CF2 /* Supporting Files */ = {
149 | isa = PBXGroup;
150 | children = (
151 | 49A06B90183DA27300C71CF2 /* record.txt */,
152 | 49A06B62183D8C7300C71CF2 /* mapDemo-Info.plist */,
153 | 49A06B63183D8C7300C71CF2 /* InfoPlist.strings */,
154 | 49A06B66183D8C7300C71CF2 /* main.m */,
155 | 49A06B68183D8C7300C71CF2 /* mapDemo-Prefix.pch */,
156 | );
157 | name = "Supporting Files";
158 | sourceTree = "";
159 | };
160 | 49A06B79183D8C7300C71CF2 /* mapDemoTests */ = {
161 | isa = PBXGroup;
162 | children = (
163 | 49A06B7F183D8C7300C71CF2 /* mapDemoTests.m */,
164 | 49A06B7A183D8C7300C71CF2 /* Supporting Files */,
165 | );
166 | path = mapDemoTests;
167 | sourceTree = "";
168 | };
169 | 49A06B7A183D8C7300C71CF2 /* Supporting Files */ = {
170 | isa = PBXGroup;
171 | children = (
172 | 49A06B7B183D8C7300C71CF2 /* mapDemoTests-Info.plist */,
173 | 49A06B7C183D8C7300C71CF2 /* InfoPlist.strings */,
174 | );
175 | name = "Supporting Files";
176 | sourceTree = "";
177 | };
178 | /* End PBXGroup section */
179 |
180 | /* Begin PBXNativeTarget section */
181 | 49A06B56183D8C7300C71CF2 /* mapDemo */ = {
182 | isa = PBXNativeTarget;
183 | buildConfigurationList = 49A06B83183D8C7300C71CF2 /* Build configuration list for PBXNativeTarget "mapDemo" */;
184 | buildPhases = (
185 | 49A06B53183D8C7300C71CF2 /* Sources */,
186 | 49A06B54183D8C7300C71CF2 /* Frameworks */,
187 | 49A06B55183D8C7300C71CF2 /* Resources */,
188 | );
189 | buildRules = (
190 | );
191 | dependencies = (
192 | );
193 | name = mapDemo;
194 | productName = mapDemo;
195 | productReference = 49A06B57183D8C7300C71CF2 /* mapDemo.app */;
196 | productType = "com.apple.product-type.application";
197 | };
198 | 49A06B71183D8C7300C71CF2 /* mapDemoTests */ = {
199 | isa = PBXNativeTarget;
200 | buildConfigurationList = 49A06B86183D8C7300C71CF2 /* Build configuration list for PBXNativeTarget "mapDemoTests" */;
201 | buildPhases = (
202 | 49A06B6E183D8C7300C71CF2 /* Sources */,
203 | 49A06B6F183D8C7300C71CF2 /* Frameworks */,
204 | 49A06B70183D8C7300C71CF2 /* Resources */,
205 | );
206 | buildRules = (
207 | );
208 | dependencies = (
209 | 49A06B78183D8C7300C71CF2 /* PBXTargetDependency */,
210 | );
211 | name = mapDemoTests;
212 | productName = mapDemoTests;
213 | productReference = 49A06B72183D8C7300C71CF2 /* mapDemoTests.xctest */;
214 | productType = "com.apple.product-type.bundle.unit-test";
215 | };
216 | /* End PBXNativeTarget section */
217 |
218 | /* Begin PBXProject section */
219 | 49A06B4F183D8C7300C71CF2 /* Project object */ = {
220 | isa = PBXProject;
221 | attributes = {
222 | LastUpgradeCheck = 0500;
223 | ORGANIZATIONNAME = bravo;
224 | TargetAttributes = {
225 | 49A06B71183D8C7300C71CF2 = {
226 | TestTargetID = 49A06B56183D8C7300C71CF2;
227 | };
228 | };
229 | };
230 | buildConfigurationList = 49A06B52183D8C7300C71CF2 /* Build configuration list for PBXProject "mapDemo" */;
231 | compatibilityVersion = "Xcode 3.2";
232 | developmentRegion = English;
233 | hasScannedForEncodings = 0;
234 | knownRegions = (
235 | en,
236 | );
237 | mainGroup = 49A06B4E183D8C7300C71CF2;
238 | productRefGroup = 49A06B58183D8C7300C71CF2 /* Products */;
239 | projectDirPath = "";
240 | projectRoot = "";
241 | targets = (
242 | 49A06B56183D8C7300C71CF2 /* mapDemo */,
243 | 49A06B71183D8C7300C71CF2 /* mapDemoTests */,
244 | );
245 | };
246 | /* End PBXProject section */
247 |
248 | /* Begin PBXResourcesBuildPhase section */
249 | 49A06B55183D8C7300C71CF2 /* Resources */ = {
250 | isa = PBXResourcesBuildPhase;
251 | buildActionMask = 2147483647;
252 | files = (
253 | 49A06B91183DA27300C71CF2 /* record.txt in Resources */,
254 | 49A06B65183D8C7300C71CF2 /* InfoPlist.strings in Resources */,
255 | 49A06B6D183D8C7300C71CF2 /* Images.xcassets in Resources */,
256 | );
257 | runOnlyForDeploymentPostprocessing = 0;
258 | };
259 | 49A06B70183D8C7300C71CF2 /* Resources */ = {
260 | isa = PBXResourcesBuildPhase;
261 | buildActionMask = 2147483647;
262 | files = (
263 | 49A06B7E183D8C7300C71CF2 /* InfoPlist.strings in Resources */,
264 | );
265 | runOnlyForDeploymentPostprocessing = 0;
266 | };
267 | /* End PBXResourcesBuildPhase section */
268 |
269 | /* Begin PBXSourcesBuildPhase section */
270 | 49A06B53183D8C7300C71CF2 /* Sources */ = {
271 | isa = PBXSourcesBuildPhase;
272 | buildActionMask = 2147483647;
273 | files = (
274 | 49A06B8B183D8CA300C71CF2 /* mainViewController.m in Sources */,
275 | 49578D1A18481D3200C1117A /* LocationViewController.m in Sources */,
276 | 49A06B6B183D8C7300C71CF2 /* AppDelegate.m in Sources */,
277 | 49ABDEFA184076AC001A6439 /* GradientPolylineOverlay.m in Sources */,
278 | 49A06B94183DB56600C71CF2 /* GradientPolylineRenderer.m in Sources */,
279 | 49A06B67183D8C7300C71CF2 /* main.m in Sources */,
280 | );
281 | runOnlyForDeploymentPostprocessing = 0;
282 | };
283 | 49A06B6E183D8C7300C71CF2 /* Sources */ = {
284 | isa = PBXSourcesBuildPhase;
285 | buildActionMask = 2147483647;
286 | files = (
287 | 49A06B80183D8C7300C71CF2 /* mapDemoTests.m in Sources */,
288 | );
289 | runOnlyForDeploymentPostprocessing = 0;
290 | };
291 | /* End PBXSourcesBuildPhase section */
292 |
293 | /* Begin PBXTargetDependency section */
294 | 49A06B78183D8C7300C71CF2 /* PBXTargetDependency */ = {
295 | isa = PBXTargetDependency;
296 | target = 49A06B56183D8C7300C71CF2 /* mapDemo */;
297 | targetProxy = 49A06B77183D8C7300C71CF2 /* PBXContainerItemProxy */;
298 | };
299 | /* End PBXTargetDependency section */
300 |
301 | /* Begin PBXVariantGroup section */
302 | 49A06B63183D8C7300C71CF2 /* InfoPlist.strings */ = {
303 | isa = PBXVariantGroup;
304 | children = (
305 | 49A06B64183D8C7300C71CF2 /* en */,
306 | );
307 | name = InfoPlist.strings;
308 | sourceTree = "";
309 | };
310 | 49A06B7C183D8C7300C71CF2 /* InfoPlist.strings */ = {
311 | isa = PBXVariantGroup;
312 | children = (
313 | 49A06B7D183D8C7300C71CF2 /* en */,
314 | );
315 | name = InfoPlist.strings;
316 | sourceTree = "";
317 | };
318 | /* End PBXVariantGroup section */
319 |
320 | /* Begin XCBuildConfiguration section */
321 | 49A06B81183D8C7300C71CF2 /* Debug */ = {
322 | isa = XCBuildConfiguration;
323 | buildSettings = {
324 | ALWAYS_SEARCH_USER_PATHS = NO;
325 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
326 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
327 | CLANG_CXX_LIBRARY = "libc++";
328 | CLANG_ENABLE_MODULES = YES;
329 | CLANG_ENABLE_OBJC_ARC = YES;
330 | CLANG_WARN_BOOL_CONVERSION = YES;
331 | CLANG_WARN_CONSTANT_CONVERSION = YES;
332 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
333 | CLANG_WARN_EMPTY_BODY = YES;
334 | CLANG_WARN_ENUM_CONVERSION = YES;
335 | CLANG_WARN_INT_CONVERSION = YES;
336 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
339 | COPY_PHASE_STRIP = NO;
340 | GCC_C_LANGUAGE_STANDARD = gnu99;
341 | GCC_DYNAMIC_NO_PIC = NO;
342 | GCC_OPTIMIZATION_LEVEL = 0;
343 | GCC_PREPROCESSOR_DEFINITIONS = (
344 | "DEBUG=1",
345 | "$(inherited)",
346 | );
347 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
348 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
349 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
350 | GCC_WARN_UNDECLARED_SELECTOR = YES;
351 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
352 | GCC_WARN_UNUSED_FUNCTION = YES;
353 | GCC_WARN_UNUSED_VARIABLE = YES;
354 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
355 | ONLY_ACTIVE_ARCH = YES;
356 | SDKROOT = iphoneos;
357 | TARGETED_DEVICE_FAMILY = "1,2";
358 | };
359 | name = Debug;
360 | };
361 | 49A06B82183D8C7300C71CF2 /* Release */ = {
362 | isa = XCBuildConfiguration;
363 | buildSettings = {
364 | ALWAYS_SEARCH_USER_PATHS = NO;
365 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
366 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
367 | CLANG_CXX_LIBRARY = "libc++";
368 | CLANG_ENABLE_MODULES = YES;
369 | CLANG_ENABLE_OBJC_ARC = YES;
370 | CLANG_WARN_BOOL_CONVERSION = YES;
371 | CLANG_WARN_CONSTANT_CONVERSION = YES;
372 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
373 | CLANG_WARN_EMPTY_BODY = YES;
374 | CLANG_WARN_ENUM_CONVERSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
377 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
378 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
379 | COPY_PHASE_STRIP = YES;
380 | ENABLE_NS_ASSERTIONS = NO;
381 | GCC_C_LANGUAGE_STANDARD = gnu99;
382 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
383 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
384 | GCC_WARN_UNDECLARED_SELECTOR = YES;
385 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
386 | GCC_WARN_UNUSED_FUNCTION = YES;
387 | GCC_WARN_UNUSED_VARIABLE = YES;
388 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
389 | SDKROOT = iphoneos;
390 | TARGETED_DEVICE_FAMILY = "1,2";
391 | VALIDATE_PRODUCT = YES;
392 | };
393 | name = Release;
394 | };
395 | 49A06B84183D8C7300C71CF2 /* Debug */ = {
396 | isa = XCBuildConfiguration;
397 | buildSettings = {
398 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
399 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
400 | CODE_SIGN_IDENTITY = "iPhone Developer: Yuan Chih Lin (F9B56PXNQA)";
401 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
402 | GCC_PREFIX_HEADER = "mapDemo/mapDemo-Prefix.pch";
403 | INFOPLIST_FILE = "mapDemo/mapDemo-Info.plist";
404 | PRODUCT_NAME = "$(TARGET_NAME)";
405 | WRAPPER_EXTENSION = app;
406 | };
407 | name = Debug;
408 | };
409 | 49A06B85183D8C7300C71CF2 /* Release */ = {
410 | isa = XCBuildConfiguration;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
414 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
415 | GCC_PREFIX_HEADER = "mapDemo/mapDemo-Prefix.pch";
416 | INFOPLIST_FILE = "mapDemo/mapDemo-Info.plist";
417 | PRODUCT_NAME = "$(TARGET_NAME)";
418 | WRAPPER_EXTENSION = app;
419 | };
420 | name = Release;
421 | };
422 | 49A06B87183D8C7300C71CF2 /* Debug */ = {
423 | isa = XCBuildConfiguration;
424 | buildSettings = {
425 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
426 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/mapDemo.app/mapDemo";
427 | FRAMEWORK_SEARCH_PATHS = (
428 | "$(SDKROOT)/Developer/Library/Frameworks",
429 | "$(inherited)",
430 | "$(DEVELOPER_FRAMEWORKS_DIR)",
431 | );
432 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
433 | GCC_PREFIX_HEADER = "mapDemo/mapDemo-Prefix.pch";
434 | GCC_PREPROCESSOR_DEFINITIONS = (
435 | "DEBUG=1",
436 | "$(inherited)",
437 | );
438 | INFOPLIST_FILE = "mapDemoTests/mapDemoTests-Info.plist";
439 | PRODUCT_NAME = "$(TARGET_NAME)";
440 | TEST_HOST = "$(BUNDLE_LOADER)";
441 | WRAPPER_EXTENSION = xctest;
442 | };
443 | name = Debug;
444 | };
445 | 49A06B88183D8C7300C71CF2 /* Release */ = {
446 | isa = XCBuildConfiguration;
447 | buildSettings = {
448 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
449 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/mapDemo.app/mapDemo";
450 | FRAMEWORK_SEARCH_PATHS = (
451 | "$(SDKROOT)/Developer/Library/Frameworks",
452 | "$(inherited)",
453 | "$(DEVELOPER_FRAMEWORKS_DIR)",
454 | );
455 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
456 | GCC_PREFIX_HEADER = "mapDemo/mapDemo-Prefix.pch";
457 | INFOPLIST_FILE = "mapDemoTests/mapDemoTests-Info.plist";
458 | PRODUCT_NAME = "$(TARGET_NAME)";
459 | TEST_HOST = "$(BUNDLE_LOADER)";
460 | WRAPPER_EXTENSION = xctest;
461 | };
462 | name = Release;
463 | };
464 | /* End XCBuildConfiguration section */
465 |
466 | /* Begin XCConfigurationList section */
467 | 49A06B52183D8C7300C71CF2 /* Build configuration list for PBXProject "mapDemo" */ = {
468 | isa = XCConfigurationList;
469 | buildConfigurations = (
470 | 49A06B81183D8C7300C71CF2 /* Debug */,
471 | 49A06B82183D8C7300C71CF2 /* Release */,
472 | );
473 | defaultConfigurationIsVisible = 0;
474 | defaultConfigurationName = Release;
475 | };
476 | 49A06B83183D8C7300C71CF2 /* Build configuration list for PBXNativeTarget "mapDemo" */ = {
477 | isa = XCConfigurationList;
478 | buildConfigurations = (
479 | 49A06B84183D8C7300C71CF2 /* Debug */,
480 | 49A06B85183D8C7300C71CF2 /* Release */,
481 | );
482 | defaultConfigurationIsVisible = 0;
483 | defaultConfigurationName = Release;
484 | };
485 | 49A06B86183D8C7300C71CF2 /* Build configuration list for PBXNativeTarget "mapDemoTests" */ = {
486 | isa = XCConfigurationList;
487 | buildConfigurations = (
488 | 49A06B87183D8C7300C71CF2 /* Debug */,
489 | 49A06B88183D8C7300C71CF2 /* Release */,
490 | );
491 | defaultConfigurationIsVisible = 0;
492 | defaultConfigurationName = Release;
493 | };
494 | /* End XCConfigurationList section */
495 | };
496 | rootObject = 49A06B4F183D8C7300C71CF2 /* Project object */;
497 | }
498 |
--------------------------------------------------------------------------------