0
votes

enter image description here

I have some issues with header and section here. My view is below:

  • Custom navigation with transparent.

  • TableView frame = screen bounds, contentInset top = 64.

  • TableView with header clear color.

  • TableView has 1 section view (view has 3 tab).

    When I scroll tableview, section keep under navigation (perfect), but cells are scroll from section to top screen. I want cells only scroll in section, not to top and under navigation bar.

    Can I help me? Thank you so much.

1

1 Answers

2
votes

This is because the table view clipsToBounds by default is false, which means it will be rendered outside the table view bounds.

A solution:

tableView.clipsToBounds = true