I have a Twitter feed parser that give me a NSMutableArray of NSMutableDictionaries that hold the data.
This is how I am initializing STV:
_tableViewModel = [SCTableViewModel alloc] initWithTableView:_tableView withViewController:self];
After my parser calls my delegate method letting it know that it has finished downloading the feed, I do this:
- (void)receivedItems:(NSMutableArray *)theItems
{
_items = theItems;
SCDictionaryDefinition *twitterDef = [SCDictionaryDefinition definitionWithDictionaryKeyNames:[NSArray arrayWithObjects:@"title", nil]];
twitterDef.titlePropertyName = @"title";
SCArrayOfObjectsSection *section = [SCArrayOfObjectsSection sectionWithHeaderTitle:nil withItems:_items withClassDefinition:twitterDef];
[_tableViewModel addSection:section];
section.allowEditDetailView = NO;
[_tableView reloadData];
[_activityIndicator stopAnimating];
}
This works (I only want a tableview with a row for each tweet). However, is there a way to change the cell type? It seems it is of SCTextFieldCell where I would like to be using SCTextViewCell (for the auto grow).
Thanks!