I am trying to upgrade an app from STV 2.2 to the latest STV 3.0 and am having a little trouble with deprecated methods.
The following code was from the old app under STV2.2:
(SCTableViewModel *)tableModelForCustomer:(CustomerEntity *)aCustomer listType:(CustomerOrdersListType)aListType {
SCTableViewModel *aModel = nil;
switch (aListType) {
case CustomerListTypeOrders: {
NSMutableSet *ordersSet = aCustomer.ordersSet;
NSLog(@"order: %@", ordersSet);
SCArrayOfObjectsModel *theTableModel = [SCArrayOfObjectsModel tableViewModelWithTableView:self.tableView withViewController:self withItemsSet:ordersSet withClassDefinition:[EntityDefinitions getOrderDefinition]];
theTableModel.addButtonItem = self.addButtonItem;
theTableModel.editButtonItem = self.editButtonItem;
theTableModel.detailViewModal = YES;
theTableModel.detailViewModalPresentationStyle = UIModalPresentationPageSheet;
theTableModel.autoAssignDelegateForDetailModels = YES;
aModel = theTableModel;
break;
}
I am getting the following errors from the above:
"property detailViewModal and property detailViewModalPresentation not found"--I recall reading that these I believe were deprecated but I don't know what replaced them because I maybe a few iterations behind. Looked at STV manual and nothing jumped out.
The other error/warning I am receiving is that "Class method +tableViewModelWithTableView:withViewController:withItemsSet:withClassDefinition"--again regarding the same can anyone point me to what this was replaced with.
Thanks
TRG