如何将 UIPanGestureRecognizer 与 ScrollView 结合使用
我正在开发一个 iPhone 应用程序,它需要像 iPhone Springboard 这样的动画,它是带有 UIPageControl
的 UIScrollView
。长按图标时,它应该像在跳板上一样动画。要点是,图标应该能够移动到任何地方,而其他图标则自动调整。有人尝试过吗?我已经能够使用 UIPanGestureRecognizer
移动图标并移动图标,但我无法调整其他图标。
有人能帮我解决这个问题吗? 提前致谢。
I am working on an iPhone app that needs the animation like the iPhone Springboard that is a UIScrollView
with a UIPageControl
. On a long press of an icon it should animate like on the Springboard. The main point is, the icons should be able to be moved to any place while the others adjust automatically. Has any one tried it? I have been able to do the moving of the icons with UIPanGestureRecognizer
and move the icons, but I'm not able to adjust the others.
Could anyone help me on this?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论