mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Delegate definition tweaks for Table and Collection; ensure Table tests run with ARC enabled.
This commit is contained in:
@@ -8,7 +8,17 @@
|
||||
|
||||
#import <AsyncDisplayKit/ASCollectionNode.h>
|
||||
|
||||
@protocol ASPagerNodeDataSource;
|
||||
@class ASPagerNode;
|
||||
|
||||
@protocol ASPagerNodeDataSource <ASCollectionDataSource>
|
||||
|
||||
// This method replaces -collectionView:numberOfItemsInSection:
|
||||
- (NSInteger)numberOfPagesInPagerNode:(ASPagerNode *)pagerNode;
|
||||
|
||||
// This method replaces -collectionView:nodeForItemAtIndexPath:
|
||||
- (ASCellNode *)pagerNode:(ASPagerNode *)pagerNode nodeAtIndex:(NSInteger)index;
|
||||
|
||||
@end
|
||||
|
||||
@interface ASPagerNode : ASCollectionNode
|
||||
|
||||
@@ -32,12 +42,3 @@
|
||||
|
||||
@end
|
||||
|
||||
@protocol ASPagerNodeDataSource <NSObject>
|
||||
|
||||
// This method replaces -collectionView:numberOfItemsInSection:
|
||||
- (NSInteger)numberOfPagesInPagerNode:(ASPagerNode *)pagerNode;
|
||||
|
||||
// This method replaces -collectionView:nodeForItemAtIndexPath:
|
||||
- (ASCellNode *)pagerNode:(ASPagerNode *)pagerNode nodeAtIndex:(NSInteger)index;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user