AshFurrow/UICollectionViewExample — pull request #2 by gugmaster (2012-10-16 13:27:26+00:00)
Title: fixed potential crash

Thanks for this really great example! :) :)
I personally like your style :)

When using it with sections it crashed for me in

line 194: [self.collectionView insertSections:[NSIndexSet indexSetWithIndex:[obj unsignedIntegerValue]]];

so i modified the following lines

obj was set as NSArray but used with NSValue

-> now i changed both lines (146 and 149) to following code:

change[@(type)] = @(sectionIndex); <-- is now NSValue