PSCollectionView's delegate not fire

前端 未结 3 1026
走了就别回头了
走了就别回头了 2021-01-26 03:00

I followed PSCollectionView\'s usage on Github.

This is my code:

- (void)viewDidLoad
{
  self.collectionView = [[PSCollectionView alloc] init];
  self.co         


        
3条回答
  •  迷失自我
    2021-01-26 03:23

    Try adding

    [self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:@"cell"];

    at the end of your viewDidLoad.

    Usually you need to tell your collectionView what Cells/Views to use.

提交回复
热议问题