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

collection view to an out-of-bounds #2

Open
brahimNWAw opened this issue Apr 10, 2022 · 0 comments
Open

collection view to an out-of-bounds #2

brahimNWAw opened this issue Apr 10, 2022 · 0 comments

Comments

@brahimNWAw
Copy link

Hello Johnny I tried to run this code but keeps giving me this error not sure how to fix it
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempted to scroll the collection view to an out-of-bounds item (0) when there are only 0 items in section 0. Collection view: <UICollectionView: 0x7ff546854000; frame = (0 50; 414 642); clipsToBounds = YES; autoresize = RM+BM; tintColor = UIExtendedGrayColorSpace 1 1; gestureRecognizers = <NSArray: 0x600003ff8420>; layer = <CALayer: 0x600003136a40>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}; layout: <UICollectionViewFlowLayout: 0x7ff546028990>; dataSource: (null)>.'

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