From 8aa039cb0027a64301ec51d2b36bd7e27c80242b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=8F=E4=B8=9C?= <2431735199@qq.com> Date: Wed, 18 Jan 2017 09:50:06 +0800 Subject: [PATCH] Get custom cell --- RATreeView/RATreeView/RATreeView.h | 2 +- RATreeView/RATreeView/RATreeView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RATreeView/RATreeView/RATreeView.h b/RATreeView/RATreeView/RATreeView.h index 5b95eaf..0ff7cb9 100644 --- a/RATreeView/RATreeView/RATreeView.h +++ b/RATreeView/RATreeView/RATreeView.h @@ -546,7 +546,7 @@ typedef enum RATreeViewRowAnimation { /// @name Accessing Cells ///------------------------------------------------ -- (nullable UITableViewCell *)cellForItem:(id)item; +- (nullable __kindof UITableViewCell *)cellForItem:(id)item; - (nullable NSArray *)visibleCells; - (nullable id)itemForCell:(UITableViewCell *)cell; - (nullable id)itemForRowAtPoint:(CGPoint)point; diff --git a/RATreeView/RATreeView/RATreeView.m b/RATreeView/RATreeView/RATreeView.m index 58b2497..e7f2c7c 100644 --- a/RATreeView/RATreeView/RATreeView.m +++ b/RATreeView/RATreeView/RATreeView.m @@ -404,7 +404,7 @@ - (id)parentForItem:(id)item #pragma mark - Accessing Cells -- (UITableViewCell *)cellForItem:(id)item +- (__kindof UITableViewCell *)cellForItem:(id)item { NSIndexPath *indexPath = [self indexPathForItem:item]; return [self.tableView cellForRowAtIndexPath:indexPath];