我需要提示/代码,例如在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中删除一样的效果
发布评论