This may be a very basic question. But I am finding it confusing with my tableView acting weird when I scroll up and down.
So UITableViewCells are Reusable !! So each row in my tableViewCell is reusable, and so, if I scroll down, I tend to use the same cells for different purposes (as programmed). My assumption is that 'a cell is a row'
Are sections
reusable as well ?
So if I have 6 sections with 2 displayed on the screen at the moment, and I scroll down.... Do I effectively have 2 sections being reused thrice or do I have 6 sections ?
A Section is just visual appearance of groups of UITableViewCells in a UITableView. It is not a object or something that one can reuse.
Another reason why sections can not be made reusable is that, its rare that two sections contain same number of rows of same kinds of cells.
The only reusable elements in a table view are UITableViewCells.