UA-17470720-3

Jump to content


Photo
- - - - -

SCArrayOfObjectsModel tableViewModelWithTableView

models sections

  • Please log in to reply
1 reply to this topic

#1 TODD GARLAND

TODD GARLAND

    Experienced Member

  • STV 4.0 Pro
  • PipPipPipPip
  • 69 posts
Reputation: 21
Excellent

Posted 21 July 2013 - 01:12 PM

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

 

 



#2 TODD GARLAND

TODD GARLAND

    Experienced Member

  • STV 4.0 Pro
  • PipPipPipPip
  • 69 posts
Reputation: 21
Excellent

Posted 22 July 2013 - 04:29 PM

dead topic--converted to STV 3.0

 

thanks







Also tagged with one or more of these keywords: models, sections

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users