Created
May 3, 2015 14:20
-
-
Save AlexHedley/6218ba01a2e8fc3ef0b5 to your computer and use it in GitHub Desktop.
Table View Height
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (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