Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

TableView cells are not creating or missing when scroll to end

In Table view all cells are not showing correct data when scrolls down.

I am developing a TV Guide.In that i am showing total 10 days of data it includes current date and 2 past dates and 7 future days data.I have a table view which contains collectionview in each row. Its kind of a TV Guide (channels and programs). After launch table I am setting contentOffset for one collection-view to current time so all collection-views in a tableview will scroll.

What ever visible cells of tableview all are working fine. I mean if I select cell, it's giving current time info properly. But if I scrollview the table to the end and select cells, it's giving previous day information.

collectionView.contentOffset= CGPointMake(width*index,0);

I mean that there content offset is pointing to zero position so taking old data and not setting to current time. But if scroll horizontally then all cells take showing information properly. How can I achieve this even if I scroll down?

Comments