没有触摸开始:在 UIImagePickerController 的实时相机区域中

发布于 2024-07-25 00:28:10 字数 320 浏览 1 评论 0原文

在我的 UIImagePickerController (相机拍摄视图)中,我想跟踪触摸。 除了touchesbegan之外,每个触摸事件都被正确调用:

这不是打字错误或其他什么,因为touchesbegan:到目前为止已经被调用了, 我已将控制器从 UIViewController 更改为 UIImagePickerController。

为什么UIImagePickerController中没有调用touchesbegan:? 我该如何实现这一目标?


更新:它有效。 但仅限于控件(位于底部)。 它在相机实时图片中不起作用。

in my UIImagePickerController (camera shooting view), I want to track touches.
Every touch event gets properly called except for touchesbegan:

It's not a typo or something because touchesbegan: had been called up to the moment,
I've changed the controller from UIViewController to UIImagePickerController.

Why is touchesbegan: not called in UIImagePickerController?
How do I achieve this?


Update: It works. But only on the controls (which are located at the bottom). It doesn't work in the camera live picture.

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

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

发布评论

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

评论(1

饭团 2024-08-01 00:28:10

在预览区域添加透明视图,子类化 UIView 并在那里捕获触摸事件?

Add a transparent view over the preview area, subclass UIView and capture touch events there?

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