This repository was archived by the owner on Feb 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
examples/CollectionViewWithViewControllerCells/Sample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,12 @@ - (instancetype)initWithViewControllerBlock:(ASDisplayNodeViewControllerBlock)vi
5252 ASDisplayNodeAssertNotNil (viewControllerBlock, @" should initialize with a valid block that returns a UIViewController" );
5353
5454 _viewController = viewControllerBlock ();
55+
56+ NSLog (@" %d " , _viewController.view .gestureRecognizers .count );
57+ // for (UIGestureRecognizer *recognizer in [_viewController.view gestureRecognizers]) {
58+ //
59+ // }
60+
5561 _viewControllerNode = [[ASDisplayNode alloc ] initWithViewBlock: ^UIView *{
5662 return _viewController.view ;
5763 } didLoadBlock: didLoadBlock];
Original file line number Diff line number Diff line change @@ -26,6 +26,16 @@ - (instancetype)initWithImage:(UIImage *)image {
2626 return self;
2727}
2828
29+ - (void )viewDidAppear : (BOOL )animated ;
30+ {
31+
32+ }
33+
34+ - (void )viewWillAppear : (BOOL )animated ;
35+ {
36+
37+ }
38+
2939- (void )viewDidLoad {
3040 [super viewDidLoad ];
3141
Original file line number Diff line number Diff line change @@ -97,8 +97,6 @@ - (ASCellNode *)collectionView:(ASCollectionView *)collectionView nodeForItemAtI
9797 }];
9898
9999 return node;
100-
101- // [[ImageCellNode alloc] initWithImage:_sections[indexPath.section][indexPath.item]];
102100}
103101
104102- (ASCellNode *)collectionView : (ASCollectionView *)collectionView nodeForSupplementaryElementOfKind : (NSString *)kind atIndexPath : (NSIndexPath *)indexPath
You can’t perform that action at this time.
0 commit comments