适用于iOS的Tinder-Like Swipe Animation [英] Tinder-Like Swipe Animation for iOS

查看:204
本文介绍了适用于iOS的Tinder-Like Swipe Animation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照这个非常有用的教程,介绍了如何添加类似于tinder的滑动( http:// guti 。在/用品/创建-火种般的动画/ );但是,我有一个问题 - 当图片消失时,我想用另一张图片替换它。我是如何/在哪里做的?

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-Like Swipe Animation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆