diff --git a/AFNetworkingExample/Classes/Controllers/NearbySpotsViewController.m b/AFNetworkingExample/Classes/Controllers/NearbySpotsViewController.m index 2d27750..bb63d36 100644 --- a/AFNetworkingExample/Classes/Controllers/NearbySpotsViewController.m +++ b/AFNetworkingExample/Classes/Controllers/NearbySpotsViewController.m @@ -109,6 +109,8 @@ static TTTLocationFormatter *__locationFormatter; [self.navigationController.navigationBar setTintColor:[UIColor darkGrayColor]]; + self.tableView.rowHeight = 70.0f; + [self.locationManager startUpdatingLocation]; } @@ -145,10 +147,6 @@ static TTTLocationFormatter *__locationFormatter; return [self.nearbySpots count]; } -- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { - return 70.0f; -} - - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell";