romaonthego / RETableViewManager

Powerful data driven content manager for UITableView.
MIT License
2.48k stars 432 forks source link

rows of sections disappear after edit mode ! #231

Open SalehAlDhobaie opened 9 years ago

SalehAlDhobaie commented 9 years ago

Hi Roman , I have 5 sections I use it with RETableManager only one can be delete in edit mode and the other can't the issue is once I enter in edit mode and one or many row from that section and tap done. the rest section rows gone (but the header and footer there ) !

below the deletion handler of row in that section

        titleAndImageItem.deletionHandler = ^(REMealImageItem *item) {
            Meal *meal = item.meal;
            for (Meal * mealItem in self.checkout.meals) {
                if ([mealItem._id isEqualToString:meal._id]) {
                    NSMutableArray *meals = [self.checkout.meals mutableCopy];
                    [meals removeObject:mealItem];
                    self.checkout.meals = meals;
                    break;
                }
            }

if my explanation not clear I can provide some image.