From 9e144c6f3c5f44aab33ab1922ba7dda5e770218b Mon Sep 17 00:00:00 2001 From: Zachary Date: Sun, 22 Feb 2015 12:41:41 -0500 Subject: [PATCH] FIX: changed CCTableView's dataSource property from 'strong' to 'weak' to prevent retain-cycle when using a SpriteBuilder Scene (CCNode that's 0th child of CCScene generated via loading from CCBReader) as the dataSource of a CCTableView --- cocos2d-ui/CCTableView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d-ui/CCTableView.h b/cocos2d-ui/CCTableView.h index 046a949e748..5a9e444e0e7 100644 --- a/cocos2d-ui/CCTableView.h +++ b/cocos2d-ui/CCTableView.h @@ -156,7 +156,7 @@ @note Assigning a new or different data source immediately calls reloadData. */ -@property (nonatomic,strong) id dataSource; +@property (nonatomic,weak) id dataSource; /** Removes all cells from memory and requests a new set of cells from the dataSource. Assigning a different dataSource and changing the rowHeight will cause reloadData to run.