From 28c7d2557d0bda869cef68a2ecf84500dd2f18ee Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Wed, 1 Jun 2011 09:10:33 -0500 Subject: [PATCH] Setting row height in viewDidLoad for NearbySpots controller --- .../Classes/Controllers/NearbySpotsViewController.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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";