像在iOS中删除一样的效果 [英] Effect like deletion in ios
问题描述
我需要提示/代码,例如在iOS上删除/移动应用程序效果,通常我已经启动了代码,我正在使用UIScroll
中的UIButton
列表.
I need hint/code like deletion/move app effect on iOS, normally i have started the code, I am using UIButton
list in UIScroll
.
所以我的问题是假设屏幕上有8到10个按钮,并且我想通过拖动来更改其位置.例如选择第6个按钮,然后将其移动或设置为1到2之间.当我将它们放在之间时,其他按钮的位置也会改变.
So my question is that supposes I have 8 to 10 button in screen and i want to change their position with dragging. for example choose 6th button and move or set to between 1 and 2. when I put them in to between the position of other button will change.
我正在使用UIPanGestureRecognizer
进行拖动.
I am using UIPanGestureRecognizer
for dragging.
推荐答案
download, Tiles-v1.0.zip, and check code, this is what i used when i needed to implement that.
参考:移动UIView以避免发生诸如重新排列之类的冲突跳板上的图标
这篇关于像在iOS中删除一样的效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!