如何拖动和iPhone 上的下拉按钮
我正在使用 Netbiscuits 工具为 Iphone 进行开发。我需要使用拖放iPhone 上的删除功能。我发现了一个 javascript 代码,位于 Drag Drop Javascript Library for iPad & 中。 iPhone。但是我无法使用拖放通过网站上提供的 usng javascript 代码删除功能。您是否曾经添加过拖拽操作?放弃 iPhone 的功能?如果您有一个用 Javascript 编写的示例,我会很高兴。从现在开始感谢您的帮助。
问候 阿尔泰科
I am developing for Iphone by using Netbiscuits tool. I need to use drag & drop functionality on IPhone. I have found a javascript code which locates at Drag Drop Javascript Library for iPad & iPhone. However I am not able to use drag & drop functionality by usng javascript code which was given at the website. Have you ever added drag & drop functionlity to IPhone? I would be glad if you have a sample which was written on Javascript. Thank you from now for your helps.
Regards
Altaico
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在此处查看我不久前发现的类似问题。
但它使用 Objective-C 而不是 Javascript。它背后的想法是,当你触摸一个对象时,你可以创建一个代表它的 UIImageView (可能是半透明的,就像桌面上的拖放一样),将其作为子视图添加到主 UIView 上,并通过拦截在
touchesMoved:withEvent:
方法中拖动You can have a look at a similar problem I found some time ago here.
But it used objective-C and not Javascript. The idea behind it is, as you touch an object you can create an UIImageView that represents it (maybe semi-transparent like drag&drop on the desktop works), add it on the main UIView as a subview and move it around by intercepting the dragging in the
touchesMoved:withEvent:
method