在表视图单元格中实现图像视差效果:FSParallaxTableView

jopen 10年前

FSParallaxTableView 在表视图单元格中实现图像视差效果。

How it works

Assuming the images have a height greater than the height of the cells:

  • The top cell will show the first part of its image and will hide the bottom overflow.
  • The last cell will show the last part of its image and will hide the top overflow.
  • The medium cell will show the middle part of its image and will hide bottom and top overflows.

This is done in this method:

- (void)updateImageViewCellOffset:(FSParallaxTableViewCell *)cell
在表视图单元格中实现图像视差效果:FSParallaxTableView

项目主页:http://www.open-open.com/lib/view/home/1406168627023