Created
May 19, 2014 14:58
-
-
Save julianfox/1563313e54f4502fcec0 to your computer and use it in GitHub Desktop.
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
PFQuery *query = [PFUser query]; | |
[query whereKey:@"position" nearGeoPoint:position]; | |
query.limit = 20; | |
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { | |
if (!error) { | |
for (PFObject *object in objects) { | |
NSLog(@"%@", object[@"username"]); | |
} | |
} else { | |
NSLog(@"Error: %@ %@", error, [error userInfo]); | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment