Skip to content

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

Description

@vatsal1992

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]'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions