brightec / CustomCollectionViewLayout

Custom layout for a collection view using horizontal and vertical scrolling with sticky rows and columns
MIT License
519 stars 123 forks source link

Crash on return 0 from numberOfSectionsInCollectionView(_) #13

Open rishi420 opened 8 years ago

rishi420 commented 8 years ago
func numberOfSectionsInCollectionView(collectionView: UICollectionView) -> Int {
        return 0
    }

This is required if datasource is coming form server. First time view refreshes with 0 sections, before response arrive from the server.