Welcome, Guest
Username Password: Remember me

itemEditedForSectionAtIndexPath null item?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: itemEditedForSectionAtIndexPath null item?

itemEditedForSectionAtIndexPat​h null item? 1 year, 8 months ago #1

I am using
- (void)tableViewModel:(SCTableViewModel *) tableViewModel itemEditedForSectionAtIndexPath:(NSIndexPath *) indexPath item:(NSObject *) item


to update SQLite when an item is edited, but the item is null at my function.

I have to use index path instead to manually bind to my bound object array that populates the tableview.

I also want to delete from sqlite when the user swipes to delete. I am trying to use this delegate:
- (void)tableView:(UITableView *)tv commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
 
if (editingStyle == UITableViewCellEditingStyleDelete) {


but it is never called. My controller is also a UITableViewDelegate

Does Sensible Cocoa intercept this delegate somehow?

Does Sensible Cocoa have it's own itemDeleted delegate?

Thanks
  • baberuth22
  • OFFLINE
  • Expert Boarder
  • Posts: 84
  • Karma: 2
  • Page:
  • 1
Time to create page: 0.63 seconds