Augustyniak / RATreeView

Library providing easy-to-use interface for displaying tree structures on iOS and tvOS.
MIT License
2.49k stars 466 forks source link

itemForRowAtPoint returns wrong item #212

Closed bottlehall closed 5 years ago

bottlehall commented 7 years ago

It consistently returns the item below the one being tapped. Is there something wrong with this:

UILongPressGestureRecognizer *gestureRecognizer = (UILongPressGestureRecognizer *)sender;
if (gestureRecognizer.state != UIGestureRecognizerStateEnded) return;
CGPoint p = [gestureRecognizer locationInView:self.treeView];
self.currentItem = [self.treeView itemForRowAtPoint:p];
[self performSegueWithIdentifier:segueEditItem sender:self];
bottlehall commented 7 years ago

Just noticed that if I tap on the last row, it returns the item corresponding to the first one. So, it looks like a bug.

renanstig commented 6 years ago

I'm also having the same bug

kunalsetpal commented 5 years ago

I am facing the same issue. Anyone have a fix for this yet?

bottlehall commented 5 years ago

Gave up using this.