Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crashed when collectionViewNumberOfItemInSection has odd count. ( 3 or 5 or 7) #7

Open
vatsal1992 opened this issue Jun 19, 2017 · 0 comments

Comments

@vatsal1992
Copy link

when i don't assign lines & column value ( as it is -1 ) it works but when i assign values Line = 2 & column = 4. it gets crashed in layout class line number 37.
UICollectionViewLayoutAttributes *attributes = [super layoutAttributesForItemAtIndexPath:fakeIndexPath]

and Crash Reason is

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 2]'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant