Like the title
is like this
The effect I want to achieve is the process of
sliding down, such as the picture below
This is made with tableview. Now slide it here and it will not move. What I want to achieve is that when the blue color does not reach half of the screen (approximately that position will work), it will automatically return to the first row, that is, only The red line, if it exceeds the limit, is as shown below
will automatically slide to the blue row. How to implement this change is more convenient? Does tableview or scrollview have direct attribute control? Please answer. Thank you
You are talking about card layout, you can use UICollectionView and custom UICollectionViewFlowLayout to achieve it, Demo address