I created screen that contains UITableView
. The tableView header contains horizontal UICollectionView
and that collectionView contains cells with imageView and some other view.
The question is how to apply parallax effect to all view in the tableView header?
Implement the UIScrollViewDelegate
method scrollViewDidScroll
. There you can examine the contentOffset
of the table view and modify the collection view height (via the constant
of a NSLayoutConstraint
) and its contentOffset
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.