欢迎光临
我们一直在努力

【Swift】ParallaxTableView

建站超值云服务器,限时71元/月

【Swift】ParallaxTableView

项目介绍:

About

https://github.com/IvanVorobei/ParallaxTableView

Project with example of how to use the parallax. The idea is to calculate the position of the element relative to its position on the screen. Cell class has been expanded to show how to use the parallax in your projects

这是一个如何使用视差动效的示例。 这个想法是计算元素相对于其在屏幕上的位置。 单元类已经扩展,以展示如何在项目中使用视差

How use

You must inherited from classes SPParallaxTableViewController for your tableViewController and SPParallaxTableViewCell for your tableViewCell. Do not forget overide table view data source methods. In array “parallaxViews” in SPParallaxTableViewCell you nedd add views, which must show with paralax.

Advice

If you want use some small elements with paralax – place its on transparent view and add view in “parallaxViews” array

Other

In the project you will find my library Sparrow, it’s what I use. But if needed, you can easily to remove it and do not use Sparrow in their projects

Contact:

http://hello.ivanvorobei.by

http://ivanvorobei.by

hello@ivanvorobei.by

code4app

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 【Swift】ParallaxTableView
分享到: 更多 (0)