I followed PSCollectionView\'s usage on Github.
This is my code:
- (void)viewDidLoad
{
self.collectionView = [[PSCollectionView alloc] init];
self.co
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.
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.
Finally I can make it works!
You must set the PSCollectionView instance's frame.