本文介绍了适用于 iOS 的类似 Tinder 的滑动动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了这个非常有用的教程,了解如何添加类似火种的滑动(http://guti.in/articles/creating-tinder-like-animations/);但是,我有一个问题-当图片消失时,我想用另一张图片替换它.我该怎么做/在哪里做?

I've followed this very helpful tutorial on how to add tinder-like swiping (http://guti.in/articles/creating-tinder-like-animations/); however, I have one problem- when the picture goes away, I want to replace it with another picture. How/where do I do that?

推荐答案

我基于该教程构建了一个更简单、更全面的项目.特别是,您可以使用一组图像并根据图像的索引为每张卡片分配一个图像.图像是动态的还是静态的?

I built a simpler and more comprehensive project based on that tutorial. In particular, you could use an array of images and assign each card an image based on the index of the image. Will the images be dynamic or static?

此时可能无济于事,但无论如何:https://github.com/cwRichardKim/TinderSimpleSwipeCards

Might not help at this point, but here it is anyway:https://github.com/cwRichardKim/TinderSimpleSwipeCards

这篇关于适用于 iOS 的类似 Tinder 的滑动动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-15 16:09