From 63f4783038ee8ba55c62bffd177e90d517d43327 Mon Sep 17 00:00:00 2001 From: Alexandr Irza Date: Tue, 5 Sep 2017 09:34:05 +0300 Subject: [PATCH] willSelectRowForItem and willDeselectRowForItem must return nullable value Methods willSelectRowForItem and willDeselectRowForItem must return nullable value (you wrote in comments that they can return nil), to have optional value in Swift (Any?) --- RATreeView/RATreeView/RATreeView.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RATreeView/RATreeView/RATreeView.h b/RATreeView/RATreeView/RATreeView.h index 5b95eaf..b274d8a 100644 --- a/RATreeView/RATreeView/RATreeView.h +++ b/RATreeView/RATreeView/RATreeView.h @@ -258,7 +258,7 @@ typedef enum RATreeViewRowAnimation { * * @return An id object that confirms or alters the selected row. Return an id object other than item if you want another cell to be selected. Return nil if you don't want the row selected. */ -- (id)treeView:(RATreeView *)treeView willSelectRowForItem:(id)item; +- (id _Nullable)treeView:(RATreeView *)treeView willSelectRowForItem:(id)item; /** * Tells the delegate that the row for a specified item is now selected. @@ -276,7 +276,7 @@ typedef enum RATreeViewRowAnimation { * * @return An id object that confirms or alters the deselected row. Return an id object other than item if you want another cell to be deselected. Return nil if you don’t want the row deselected. */ -- (id)treeView:(RATreeView *)treeView willDeselectRowForItem:(id)item; +- (id _Nullable)treeView:(RATreeView *)treeView willDeselectRowForItem:(id)item; /** * Tells the delegate that the row for a specified item is now deselected.