I am new to STV but I don't see how I can, in the case of EGOTableViewPullRefresh, act as a proxy and tell it about scroll events.
See this.
In my case I have basically this:
@interface MyController : UIViewController <SCTableViewModelDataSource, SCTableViewModelDelegate>
{
UISearchBar *searchBar;
UITableView *tableView;
SCArrayOfObjectsModel *tableModel;
NSMutableArray *items;
...
}
//...
- (void)viewDidLoad
{
[super viewDidLoad];
items = [NSMutableArray array]; // ...
SCClassDefinition *classDef = [SCClassDefinition definitionWithClass:[Something class]
autoGeneratePropertyDefinitions:YES];
classDef.titlePropertyName = @"name";
tableModel = [[SCArrayOfObjectsModel alloc] initWithTableView:self.tableView
withViewController:self
withItems:items
withClassDefinition:classDef];
tableModel.delegate = self;
tableModel.searchBar = self.searchBar;
tableModel.searchPropertyName = @"name";
...
}
Thus, where might I be able to subclass UITableViewController here as in the linked EGO demo? In my case the withViewController is self which is a UIViewController. I just don't see where I can setup the table model with a subclass of UITableViewController.
I looked through the samples -- the closest one to my situation is the PeopleViewController in Core Data App. How would you subclass UITableViewController in this case?
Again, I'm new to STV since a few days so forgive me if this is something obvious! Thanks.