移动UIViews以避免碰撞,例如在Springboard上重新排列图标 [英] Move UIViews to avoid collision like rearranging icons on Springboard
本文介绍了移动UIViews以避免碰撞,例如在Springboard上重新排列图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
重新排列应用程序图标时,如何在iPhone上复制效果?它需要避免冲突并在捕捉到网格时重新排列UIView。
how would one replicate the effect on the iPhone when you rearrange app icons? It would need to avoid collisions and rearrange the UIViews while snapped to a grid.
推荐答案
我写了一些示例代码要做类似这样的事情。
I've written some sample code to do something like this.
请参阅我的博客文章: Tiles ,以及相关的 GitHub存储库。
See my blog entry: Tiles, and the associated GitHub repository.
这篇关于移动UIViews以避免碰撞,例如在Springboard上重新排列图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文