I'm having an issue with trying to set a predicate on a SCTableViewModel/SCObjectSection I have setup in IB. I'm trying to do something like this in viewDidLoad since there's no way to specify a predicate like this in IB.
NSPredicate* predicate = [NSPredicate predicateWithFormat:@"userEmail == %@",[PFUser currentUser].email];
SCArrayOfObjectsModel* tableViewModel = (id)self.tableModelView;
tableViewModel.dataFetchOptions = [SCDataFetchOptions optionsWithSortKey:@"createdAt" sortAscending:YES filterPredicate:predicate];
at this point tableViewModel is of type SCTableViewModel and only at some indeterminate point in the future does it get set to an object of SCArrayOfObjectModels (not even in viewDidAppear). I tried overriding setTableViewModel on the view controller but it's never called so I don't seem to have any well defined override point to set the predicate.
I know I can just create the model at runtime without specifying a tableview section in IB but then I lose all the UI customization I've done in IB. I think I'll just resort to taking the SCObjectSection out of the table view, setting an IBOutlet to it, then subclassing SCArrayOfObjectModels to return that section. Unless anyone has any other suggestions.