Created
February 1, 2016 20:26
-
-
Save quellish/9469dadad1c2ee05fb4c to your computer and use it in GitHub Desktop.
NSExpression distanceToLocation:fromLocation:
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
expression = [NSExpression expressionForFunction:@"distanceToLocation:fromLocation:" | |
arguments:@[ | |
[NSExpression expressionForConstantValue:to ], | |
[NSExpression expressionForConstantValue:from ] | |
] | |
]; | |
result = (NSNumber *)[expression expressionValueWithObject:nil context:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment