Created
July 20, 2011 23:13
-
-
Save ngabel/1096157 to your computer and use it in GitHub Desktop.
Good way to handle CoreLocation
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
@interface LocationManager | |
// the block should return NO to keep trying to get a better location (i.e. the location wasn't accurate enough) | |
// return NO to stop trying | |
-(void)waitForLocation:(BOOL(^)(CLLocation * currentBestLocation, BOOL timedOut, NSError * error))block timeout:(NSTimeInterval)timeout ; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment