rnystrom/RNRippleTableView

NSRangeException in demo app

tomredman opened this issue · 1 comments

iOS 6.1 - iPhone 5

  1. Launch demo app
  2. Bounce the table up a few times (so cell 9 is lifted toward the middle of the screen)
  3. Tap cell 8 or 9

You should get an exception:

* Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayM objectAtIndex:]: index 10 beyond bounds [0 .. 9]'

Being thrown here:

RNRippleTableView.m line 262:

  • (UIView *)viewForIndex:(NSInteger)index {
    return [[self.rowObjects objectAtIndex:index] cachedView];
    }

Fixed in e372b50. Thanks!