Created
February 1, 2016 20:29
-
-
Save quellish/8f8889e5e47a81d93289 to your computer and use it in GitHub Desktop.
NSPredicate distanceToLocation:fromLocation
This file contains 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
predicate = [NSPredicate predicateWithFormat:@"distanceToLocation:fromLocation:(%@, %@) =< %@", | |
toLocation, | |
fromLocation, | |
expectedDistance | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment