If you override the property, you need to specify __weak (#2631)

This commit is contained in:
Garrett Moon
2016-11-18 14:42:44 -08:00
committed by Hannah Troisi
parent fb48a27160
commit 2284914c36

View File

@@ -225,8 +225,8 @@ static NSString * const kCellReuseIdentifier = @"_ASCollectionViewCell";
@implementation ASCollectionView
{
id<ASCollectionDelegate> _asyncDelegate;
id<ASCollectionDataSource> _asyncDataSource;
__weak id<ASCollectionDelegate> _asyncDelegate;
__weak id<ASCollectionDataSource> _asyncDataSource;
}
// Using _ASDisplayLayer ensures things like -layout are properly forwarded to ASCollectionNode.