像在iOS中删除一样的效果

编程入门 行业动态 更新时间:2024-10-23 07:23:11
本文介绍了像在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.

推荐答案

下载, Tiles-v1.0.zip ,并检查代码,这是我在需要实现该代码时所使用的.

download, Tiles-v1.0.zip, and check code, this is what i used when i needed to implement that.

参考:移动UIView以避免发生诸如重新排列之类的冲突跳板上的图标

更多推荐

像在iOS中删除一样的效果

本文发布于:2023-10-30 04:32:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1541777.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:效果   iOS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!