Fixing API call for spots in the example app
This commit is contained in:
parent
2dd68212c0
commit
95ca172d9d
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@
|
|||
[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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue