Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #21 from jon513/bugFixNestedTableViewCells

fix bug where a deeply nested custom UITableViewCell will not work
  • Loading branch information...
commit 6cff7a83e7f4963db988109ecadee0cfb8f0460c 2 parents 0099a1d + 47c2870
Andrew Carter authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 TimerScroller/TimeScroller.m
8 TimerScroller/TimeScroller.m
View
@@ -399,11 +399,9 @@ - (void)scrollViewDidScroll
CGPoint point = CGPointMake(CGRectGetMidX(self.frame), CGRectGetMidY(self.frame));
point = [_scrollBar convertPoint:point toView:_tableView];
- UIView *view = [_tableView hitTest:point withEvent:nil];
-
- if ([view.superview isKindOfClass:[UITableViewCell class]])
- {
- [self updateDisplayWithCell:(UITableViewCell *)view.superview];
+ UITableViewCell* cell=[_tableView cellForRowAtIndexPath:[_tableView indexPathForRowAtPoint:point]];
+ if (cell) {
+ [self updateDisplayWithCell:cell];
if (![self alpha])
{
[UIView animateWithDuration:0.2f delay:0.0f options:UIViewAnimationOptionCurveEaseOut animations:^{
Please sign in to comment.
Something went wrong with that request. Please try again.