Hello there - Fantastic work, the model is really nice.
However I am having trouble to understand how to use the basics in an app that doesn't uses the navigator.
Here's what I have done:
Create an empty app with my own view
Dropped a table on the view via IB
- linked outlets: delegate and tableview to UITable in my code - called tv below.
in the header file
#import "SCTableViewModel.h"
SCTableViewModel *tableViewModel;
IBOutlet UITableView *tv;
In the viewload event I used this code:
tableViewModel = [SCTableViewModel alloc] initWithTableView:tv withViewController:self];
SCTableViewSection *sec = [SCTableViewSection sectionWithHeaderTitle:@"Hello"];
[tableViewModel addSection:sec];
[sec addCell:[SCTextFieldCell cellWithText:@"Hi there"]];
Problem:
nothing happens. The table view is all gray, default color.
Should I connect something in IB?
Should I set some properties?
What am I missing??