PSCollectionView's delegate not fire

前端 未结 3 1025
走了就别回头了
走了就别回头了 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:22

    it's because you have typo , it's not ViewDidLoad() it's viewDidLoad(), so your ViewDidLoad() normally never gets called. So, you're not able to set your delegate and datasource properly.

提交回复
热议问题