本文介绍了如何拖动控件像Tinder投票? (见图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

显然有一个视图与uiimage视图和uilabel。



如何使拖动理解移动右侧启用一个积极投票和向左移动一个负的? / p>








There is obviously a view with uiimage view and uilabel.

how to make the dragging understand moving right to enable a positive vote and moving left a negative one?

Tinder

解决方案

Here's a great article: http://guti.in/articles/creating-tinder-like-animations/

The code is available on Github:https://github.com/ngutman/TinderLikeAnimations

[Update 1]Since this question is getting quite some views, thought I'd update this answer with a link to more recent library aimed at solving this problem:https://github.com/modocache/MDCSwipeToChoose

[Update 2]

https://github.com/zhxnlai/ZLSwipeableView

这篇关于如何拖动控件像Tinder投票? (见图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 16:26