I have a tableView inside a UIView in a VC.
This VC is in a navigation view. It is a UIViewController, not a UITableViewController.
The VC set up is this one:
The issue:
When I run app, there is a bar (full width, about 25 pixels high) appearing over the tableView at the bottom, hiding partially a cell (we see the (i) button nearly completely hidden). When scrolling tableView, this bar does not move and hides other cell.
I looked at the view in debugger (I edited the content of cells):
and found that the bar which is hiding comes from navigation controller:
So 2 questions:
- what is this view ?
- How to avoid it coming over the table view ?
I have a solution by replacing upperView by a header in tableView, but I would like to understand what goes on here.
-
—
MobileTen
-
—
Claude31
Add a CommentProbably a recycled view, separator, extended nav bar, ... are you able to recreate the same behaviour in another sample project?
There were other project with the same issue. It was solved by implementing func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { 0 }. But that does not work here.