Last active
August 29, 2015 14:12
-
-
Save sag333ar/991c10af2a68d52a2812 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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