Created
February 11, 2011 20:11
-
-
Save pier-oliviert/822927 to your computer and use it in GitHub Desktop.
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
| [placeRequest setPredicate:[NSPredicate predicateWithFormat:@"longitude BETWEEN %@ && latitude BETWEEN %@", | |
| [NSArray arrayWithObjects: | |
| [NSExpression expressionForConstantValue: | |
| [NSNumber numberWithDouble:(self.locationManager.location.coordinate.longitude - 0.35f)]], | |
| [NSExpression expressionForConstantValue: | |
| [NSNumber numberWithDouble:(self.locationManager.location.coordinate.longitude + 0.35f)]], | |
| nil], | |
| [NSArray arrayWithObjects: | |
| [NSExpression expressionForConstantValue: | |
| [NSNumber numberWithDouble:(self.locationManager.location.coordinate.latitude - 0.35f)]], | |
| [NSExpression expressionForConstantValue: | |
| [NSNumber numberWithDouble:(self.locationManager.location.coordinate.latitude + 0.35f)]], | |
| nil] | |
| ]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment