I am trying to create a table with unique styling so that my label size dynamically changes with the content. I was able to get the cell to change style after it has been dequeued once (ie once I scroll down to a new page, those cells are formatted and then when I scroll back up the cells are formatted) but cannot seem to do this one the initial load. The labels are scoped only to that method because anytime I tried to make them more available, it caused the storyboard to fail.
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
NSDictionary *pastVerse = [self.pastVerses objectAtIndex:indexPath.row];
UILabel *label;
label = (UILabel *)[cell viewWithTag:1];
label.text = [pastVerse valueForKey:@"reference"];
label = (UILabel *)[cell viewWithTag:2];
label.text = [pastVerse valueForKey:@"version"];
label = (UILabel *)[cell viewWithTag:3];
label.text = [pastVerse valueForKey:@"verse"];
[label setNumberOfLines:0];
[label sizeToFit];