I had this problem. iOS is smart enough to hide cells if the basic sub, in my case, the imageView frame is outside the borders and not showing. Make sure you have any subheadings.
You will also find that if you set the background cell color to something that does not match the uicollectionview request, it will no longer be displayed.
source
share