问题描述
我已经按照这个非常有用的教程,介绍了如何添加类似于tinder的滑动();但是,我有一个问题 - 当图片消失时,我想用另一张图片替换它。我是如何/在哪里做的?
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?
此时可能没有帮助,但无论如何它是:
Might not help at this point, but here it is anyway:https://github.com/cwRichardKim/TinderSimpleSwipeCards
这篇关于适用于iOS的Tinder-Like Swipe Animation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!