I have UITableView with background image and then I scroll it I have parallax effect like background imageView scrolls too. Problem is that then my image finished I have tableView background. Is it possible to make infinity imageView? Like then I go through image then starts this one image from beginning.

有帮助吗?

解决方案

In next few days I will add lib thay solved it and creates parallax effect under tableView

https://github.com/bizibizi/TableView-Parallax-Background

其他提示

Can you show me how are you placing that image behind the TableView? I guess the hierarchy in the storyboard should be

UIView -> UIImageView -> UITableView

The size of the UIImageView and the UITableView should be the same. So when you scroll up and down the UITableViewyou could see the image in the background. But please explain your scenario abit more so that I could suggest you something appropriate.

What Hanny means is that you need to have the tableView on top of imageView ordered in the stack of the parent view's subviews. What you can also do is stack two tableviews on top of each other, and add a touch event that moves both table view's scroll views. The image table view would contain cells that are the size of the whole view frame.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top