Skip to content

Instantly share code, notes, and snippets.

@sag333ar
Last active August 29, 2015 14:12
Show Gist options
  • Save sag333ar/991c10af2a68d52a2812 to your computer and use it in GitHub Desktop.
Save sag333ar/991c10af2a68d52a2812 to your computer and use it in GitHub Desktop.
//
// LocationManager.h
// http://SagarRKothari.com
//
// Created by SagarRKothari on 12/5/14.
//
//
#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#define NO_LOCATION_ALERT ALERT(@"Message", [NSString stringWithFormat:@"To access Application, enable Location Services in your settings on your %@", [UIDevice currentDevice].model], @"OK", self, nil)
typedef void (^locationCompletionHandler)(BOOL hasSuccessed, NSError *error, CLLocationCoordinate2D fromLocation, CLLocationCoordinate2D toLocation);
void _getDeviceLocation(locationCompletionHandler handler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment