Guest User

Untitled

a guest
Jul 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. CLLocation *current = [[CLLocation alloc] initWithLatitude:lat longitude:long];
  2. CLLocation *target = ...
  3. CLLocationDistance meters = [current distanceFromLocation:target];
  4. if (meters<radius) { /* you are closer than radius meters */ }
Add Comment
Please, Sign In to add comment