Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fixing API call for spots in the example app
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Sep 22, 2011
1 parent 2dd6821 commit 95ca172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Example/Classes/Controllers/NearbySpotsViewController.m
Expand Up @@ -70,7 +70,7 @@ - (void)loadSpotsForLocation:(CLLocation *)location {
[self.activityIndicatorView startAnimating];
self.navigationItem.rightBarButtonItem.enabled = NO;

[Spot spotsWithURLString:@"/spots/advanced_search" near:location parameters:[NSDictionary dictionaryWithObject:@"128" forKey:@"per_page"] block:^(NSArray *records) {
[Spot spotsWithURLString:@"/spots" near:location parameters:[NSDictionary dictionaryWithObject:@"128" forKey:@"per_page"] block:^(NSArray *records) {
self.nearbySpots = [records sortedArrayUsingComparator:^ NSComparisonResult(id obj1, id obj2) {
CLLocationDistance d1 = [[(Spot *)obj1 location] distanceFromLocation:location];
CLLocationDistance d2 = [[(Spot *)obj2 location] distanceFromLocation:location];
Expand Down

0 comments on commit 95ca172

Please sign in to comment.