Hey Tarek,
So I've got a simple SCTableViewController that displays a list of items. In the table I display an image, some text, and the detail disclosure indicator.
I've attached a screenshot of the problem I'm having.
Do you know how I can get dynamic row heights? I've read through the forum and in the source and it should be automatic. Unfortunately it's not working for me.
Here's my code so you can see if I'm doing anything wrong:
SCClassDefinition *searchDef = [[SCClassDefinition alloc] initWithClass:[TFSearch class] propertyNamesString:@"name"]; SCArrayOfStringsSection *section = [[SCArrayOfStringsSection alloc] initWithHeaderTitle:nil items:self.form.formSearches itemsDefinition:searchDef]; section.allowAddingItems = !isFormEditingLocked; section.allowDeletingItems = !isFormEditingLocked; section.allowEditDetailView = NO; section.allowMovingItems = NO; section.allowRowSelection = NO; section.addButtonItem = self.addButton; section.cellActions.willConfigure = ^(SCTableViewCell *cell, NSIndexPath *indexPath) { cell.imageView.image = [UIImage imageNamed:@"smart-folder-blue"]; cell.textLabel.numberOfLines = 0; cell.textLabel.lineBreakMode = NSLineBreakByWordWrapping; }; section.cellActions.willDisplay = ^(SCTableViewCell *cell, NSIndexPath *indexPath) { cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton; cell.backgroundColor = [UIColor whiteColor]; };
Any ideas? I thought that dynamic row heights was just automatic.