iphone sdk中UIWebview中的注解

发布于 2024-09-11 17:02:16 字数 110 浏览 1 评论 0原文

我需要帮助,在网页上乱写乱画,即用户在 uiwebview 上移动的地方,它应该根据触摸移动画一条线。

这可能吗。

任何人都可以帮助我吗?

谢谢, 姆鲁杜拉。

I need help for, scribbling on the webpage i.e where ever the user moves on the uiwebview there it should draw a line according to the touch moves.

Is this possible.

Can any one please help me in this.

Thanks,
Mrudula.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

牛↙奶布丁 2024-09-18 17:02:16

是的,有可能只是你必须编写 uiWebView.scrollView 而不是 uiWebView 来获取 uiwebview 的坐标。

yes it is possible just you have to write uiWebView.scrollView instead of uiWebView for getting coordinates of uiwebview.

明明#如月 2024-09-18 17:02:16

我开始做类似这样的事情。它目前不允许您“绘制”,但它确实允许您检测并记录相对触摸坐标,以便您可以在放大时正确缩放它们。DSAnnotationView 对象允许您提供要在注释点处切换的自定义 UIView。在这里查看:https://github.com/justindarc/WebViewAnnotations

-Justin

I started working on something sort of like this. It doesn't currently let you "draw", but it does let you detect and record relative touch coordinates so that you can scale them correctly when zooming in. The DSAnnotationView object lets you provide a custom UIView to be toggled at the annotation point. Check it out here: https://github.com/justindarc/WebViewAnnotations

-Justin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文