Route setDelegate: to setAsyncDelegate: (#3007)

* Make ASTableView/ASCollectionView delegate/dataSource unavailable, route setDelegate: to setAsyncDelegate:

* Remove deprecated method from example

* Drop down from unavailable to deprecated
This commit is contained in:
Adlai Holler
2017-02-09 15:20:26 -08:00
committed by GitHub
parent e338098e4f
commit 5c8818d107
5 changed files with 16 additions and 17 deletions

View File

@@ -125,6 +125,9 @@ NS_ASSUME_NONNULL_BEGIN
@interface ASCollectionView (Deprecated)
@property (nonatomic, weak) id<UICollectionViewDelegate> delegate ASDISPLAYNODE_DEPRECATED_MSG("Use ASCollectionNode.delegate instead. If you REALLY want to use this, cast to a UICollectionView but don't rely on the return value.");
@property (nonatomic, weak) id<UICollectionViewDataSource> dataSource ASDISPLAYNODE_DEPRECATED_MSG("Use ASCollectionNode.dataSource instead. If you REALLY want to use this, cast to a UICollectionView but don't rely on the return value.");
/**
* The object that acts as the asynchronous delegate of the collection view
*