How to Scroll content of cell into another cell in tableview like Google Calendar did?

Viewed 142

I wants user interface into tableview like Google calendar did. It is showing same dates events in different rows but when you scroll up or down, the date in left side gets scroll up down too.

Can you please help me how to achieve this. Please take a look on screenshot.enter image description here

As i am thinking this can be achieve by using tableview. If i am wrong then happy to follow your suggetion.

1 Answers

I personal think it can be achieved using tableView.

One way to do it is to calculate the scrollView's offset of the table view and pass it to the cell so that it update the top constraint for the date view.

Another way is to set up the constraint follow this idea. I didn't try but I think it could work as well.

enter image description here

Related