I've an simple model with 3 SCTableViewCells. On touch, i dynamically add another section + a cell
The code is pretty straightforward:
- (void)showInfoText {
SCTableViewSection *infoSection = [SCTableViewSection sectionWithHeaderTitle:@""];
UIView *textLabel = [self prepareLabel:currentQuizElement.explanation font:[UIFont boldSystemFontOfSize:14]];
infoSection.headerView = textLabel;
infoSection.headerHeight = textLabel.height;
SCTableViewCell *infoCell = [SCTableViewCell cellWithText:currentQuizElement.urlText];
infoCell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
[infoSection addCell:infoCell];
[tableModel addSection:infoSection];
[tableView insertSections:[NSIndexSet indexSetWithIndex:[tableModel indexForSection:infoSection]] withRowAnimation:UITableViewRowAnimationFade];
}
Now the funny thing, all worked with 1.5, but as i upgraded to the latest version the section are now huge, like 500 pixels. And this only happens in release mode. Totally curious why this happens. I didn't expected your framework and rewrote the prepareLabel function, to be really sure it returns the correct view. I can confirm now that this is the case. And after reverting to 1.5, everything works again (and the scrolling issue is also absent, see my other post).