没有触摸开始:在 UIImagePickerController 的实时相机区域中
在我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在预览区域添加透明视图,子类化 UIView 并在那里捕获触摸事件?
Add a transparent view over the preview area, subclass UIView and capture touch events there?