I have two scenes, both with tableViews and rows inserted into them. In both, the top row is a category row, followed by non-category rows.
In one scene, the top row appears to ‘scroll off’ the top of the tableView. It’s supposed to be colored and have text in it, but it instead appears as a blank row with no color, no text, and slightly ‘shorter’ (small amount of the top part is chopped off). If I scroll down ever so slightly, it pops up into full view and displays correctly (though still slightly ‘shorter’). Once I release the scroll, it goes back to not displaying correctly.
In the other scene, it works perfectly fine.
I have gone through my code meticulously, comparing it to the other scene with the working tableView, and so far I can’t see any difference that would cause that one to work and this one to not. However, clearly something is wrong on my end.
I was wondering if anyone has experienced this problem or might have an idea to what is causing this.
Notes:
- If the top row is not a category, it displays correctly without getting chopped off.
- If I set the initial scrollToY to a minimum value of y = 2.6, it starts off displaying correctly (at least in terms of color and text, though of course it appears slightly ‘shorter’). As expected, once I scroll and relase, it goes back to not displaying correctly.
I attached some pictures for reference:
- This is the working tableView from the other scene
- This is the broken tableView from the scene I’m talking about:
- This is the broken tableView, except scrolled ever so slightly down:
- This is the broken tableView set with an initial Y value