Skip to content

Commit 28c7d25

Browse files
committed
Setting row height in viewDidLoad for NearbySpots controller
1 parent d94d27d commit 28c7d25

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

AFNetworkingExample/Classes/Controllers/NearbySpotsViewController.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ - (void)viewDidLoad {
109109

110110
[self.navigationController.navigationBar setTintColor:[UIColor darkGrayColor]];
111111

112+
self.tableView.rowHeight = 70.0f;
113+
112114
[self.locationManager startUpdatingLocation];
113115
}
114116

@@ -145,10 +147,6 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger
145147
return [self.nearbySpots count];
146148
}
147149

148-
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
149-
return 70.0f;
150-
}
151-
152150
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
153151
static NSString *CellIdentifier = @"Cell";
154152

0 commit comments

Comments
 (0)