Skip to content

Instantly share code, notes, and snippets.

@ngabel
Created July 20, 2011 23:13
Show Gist options
  • Save ngabel/1096157 to your computer and use it in GitHub Desktop.
Save ngabel/1096157 to your computer and use it in GitHub Desktop.
Good way to handle CoreLocation
@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