From 382326ea84d6bf2afe57a5a8b28b141b5c155ef0 Mon Sep 17 00:00:00 2001 From: yury Date: Mon, 28 Dec 2015 16:11:50 +0300 Subject: [PATCH] Bridge UITableViewCell pointInside to ASNodeCell Allow ASNodeCell to specify pointInside of UITableViewCell. This is very usefull, if ASNodeCell is presented as bubble aligned to left or right (like Messages.app) and we need to be able to select row only if user taps on bubble. --- AsyncDisplayKit/ASTableView.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AsyncDisplayKit/ASTableView.mm b/AsyncDisplayKit/ASTableView.mm index 36c990b993..76db980ee9 100644 --- a/AsyncDisplayKit/ASTableView.mm +++ b/AsyncDisplayKit/ASTableView.mm @@ -75,6 +75,10 @@ static NSString * const kCellReuseIdentifier = @"_ASTableViewCell"; _node.highlighted = highlighted; } +- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event { + return [_node pointInside:point withEvent:event]; +} + @end #pragma mark -