scroll table view, the rows are going behind the section

I am using section view and rows in table view. when i scroll up the rows goes behind the section view, and when i scroll down back the rows appears again.??

Accepted Reply

Set tableView style to grouped,

if created in IB, do it in Attributes Inspector for TableView

Details here
https://stackoverflow.com/questions/664781/change-default-scrolling-behavior-of-uitableview-section-header
or
https://stackoverflow.com/questions/1006663/how-can-i-set-a-uitableview-to-grouped-style

If tableView created in code, create like this:
Code Block
let tableView = UITableView(frame: someRect, style: .grouped)

Replies

Set tableView style to grouped,

if created in IB, do it in Attributes Inspector for TableView

Details here
https://stackoverflow.com/questions/664781/change-default-scrolling-behavior-of-uitableview-section-header
or
https://stackoverflow.com/questions/1006663/how-can-i-set-a-uitableview-to-grouped-style

If tableView created in code, create like this:
Code Block
let tableView = UITableView(frame: someRect, style: .grouped)

thanx a lot, it worked

Great, good continuation.

Don't forget to close the thread by marking the correct answer.