Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView - How to Scroll header section along with table view cell?

I have dynamic cell and dynamic header view for each section in uitableview. Ho de we enable the scroll for header along with tableview cell?

like image 376
Chid Avatar asked Jan 23 '14 10:01

Chid


People also ask

Is UITableView scrollable?

Smooth Scrolling:- As a result, it affects the smoother scrolling experience. In UITableVIew, Scrolling will be smooth through cell reuse with the help of prepareForReuse() method.

How do I scroll to the top of a tableView table?

To scroll to the top of our tableview we need to create a new IndexPath . This index path has two arguments, row and section . All we want to do is scroll to the top of the table view, therefore we pass 0 for the row argument and 0 for the section argument. UITableView has the scrollToRow method built in.


1 Answers

Change the table style to Grouped in xib.

like image 96
Vaisakh Avatar answered Oct 26 '22 13:10

Vaisakh