Strange behaviour
aleksandrach opened this issue · 8 comments
Hey,
any news here?
no idea
i got same error
This is happening if you have at some moment numberOfItemsInSection = 0. I fixed this by adding "placeholder" cell every time the list is empty, and then numberOfItemsInSection = 1 or if it's not empty, it's list.count. But this is a temporary solution.
This is happening if you have at some moment numberOfItemsInSection = 0.
Do you mean that numberOfItemsInSection = 0
during scrolling, or?
Can you provide steps to reproduce this issue?
For example, when the screen is opened, the list is empty, the collection view's delegate and data source methods are called, then we get the list from the server and reload the collection. The issue is happening at the moment before the list is fetched from the server, because numberOfItemsInSection = list.count = 0;
@aleksandrach Can you provide sample project? I also use this layout to present data fetching from server, but it never happens to me.
Here is sample of the class that is implementing this screen. It has two sections, top one for the profile information and second one, the posts. You can see the screenshot in my first comment.