Skip to content

Commit a85b442

Browse files
author
Tom Thorpe
committed
Fixes #2 - fixed issue with the table not allowing extra scrolls while the cells are animating (meaning you had to to wait for the cell to finish animating before you could continue to scroll - a problem if you wanted to scroll quickly)
1 parent 31d6fd8 commit a85b442

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Diff for: UITableViewZoomController/Source/TTUITableViewZoomController.m

+10-7
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,17 @@ - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)ce
4747
cell.contentView.transform = CGAffineTransformConcat(transformScale, transformTranslate);
4848

4949
[self.tableView bringSubviewToFront:cell.contentView];
50-
[UIView animateWithDuration:self.cellZoomAnimationDuration.floatValue animations:^{
51-
cell.contentView.alpha = 1;
52-
//clear the transform
53-
cell.contentView.transform = CGAffineTransformIdentity;
54-
} completion:nil];
50+
[UIView animateWithDuration:self.cellZoomAnimationDuration.floatValue
51+
delay:0
52+
options:UIViewAnimationOptionAllowUserInteraction
53+
animations:^{
54+
cell.contentView.alpha = 1;
55+
//clear the transform
56+
cell.contentView.transform = CGAffineTransformIdentity;
57+
} completion:nil];
5558

56-
57-
currentMaxDisplayedCell = indexPath.row;
59+
60+
currentMaxDisplayedCell = indexPath.row;
5861
currentMaxDisplayedSection = indexPath.section;
5962
}
6063
}

0 commit comments

Comments
 (0)