Created
May 7, 2012 12:11
-
-
Save chrishulbert/2627450 to your computer and use it in GitHub Desktop.
Blocks location helper for finding a very rough location on an iphone
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
// | |
// LocationHelper.h | |
// | |
// Created by Chris Hulbert on 24/04/12. | |
// | |
#import <Foundation/Foundation.h> | |
#import <CoreLocation/CoreLocation.h> | |
#define locationHelperPurpose @"This app would like to know your location for some good reason." // Change this! | |
typedef void(^LocationBlock)(CLLocation* location); // Is called with nil on error | |
@interface LocationHelper : NSObject<CLLocationManagerDelegate> | |
+ (void)getRoughLocation:(LocationBlock)block; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment