Skip to content

Instantly share code, notes, and snippets.

@AlexHedley
Created May 3, 2015 14:20
Show Gist options
  • Select an option

  • Save AlexHedley/6218ba01a2e8fc3ef0b5 to your computer and use it in GitHub Desktop.

Select an option

Save AlexHedley/6218ba01a2e8fc3ef0b5 to your computer and use it in GitHub Desktop.
Table View Height
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *cellIdentifier = [[NSUserDefaults standardUserDefaults] stringForKey:@"Theme"];
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:cellIdentifier];
return cell.bounds.size.height;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment