Skip to content

Commit

Permalink
Crash fix - numberOfSectionsInCollectionView zero. Closes brightec#13
Browse files Browse the repository at this point in the history
  • Loading branch information
rishi420 committed Aug 8, 2016
1 parent 0762a79 commit 64f2eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CustomCollectionLayout/CustomCollectionViewLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CustomCollectionViewLayout: UICollectionViewLayout {
let numberOfColumns = 8
var itemAttributes : NSMutableArray!
var itemsSize : NSMutableArray!
var contentSize : CGSize!
var contentSize = CGSizeZero

override func prepareLayout() {
if self.collectionView?.numberOfSections() == 0 {
Expand Down

0 comments on commit 64f2eab

Please sign in to comment.