Skip to content

Can't make it to work - hidden it break the logic #7

Open
@plandem

Description

i used everything from your readme and when i use:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    indexPath = [tableView dataSourceIndexPathFromVisibleIndexPath: indexPath];

    WorkoutExerciseListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"WorkoutExerciseListCell" forIndexPath:indexPath];
    if( [tableView shouldSubstitutePlaceHolderForCellBeingMovedAtIndexPath: indexPath] ) {
        cell.hidden = YES;
        return cell;
    }

    [self configureCell:cell atIndexPath:indexPath];
    return cell;
}

then each row hides after drop. Here is result with 'hidden = YES'
https://www.dropbox.com/s/qsmj02kddo1wlds/bug%20sort%201.mov?dl=0

and here is result with 'hidden = NO', everything looks like fine except that sometimes there is 'non-configured' cell (at my video it has name "name of timer":
https://www.dropbox.com/s/xfbmharmie0lj4x/bug%20sort%202.mov?dl=0

what to do? What i missed?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions