使用showCameraControls 触摸并聚焦3GS = NO

发布于 2024-08-08 21:56:39 字数 449 浏览 4 评论 0原文

我正在开发一个程序,该程序使用我制作的 UIImagePicker 自定义类,问题是我希望能够使用 3GS 上的手动对焦功能(用户指向相机应对焦的部分) )并同时使用自定义叠加视图。 我已将showCameraControls 设置为“否”,以便可以通过编程方式拍摄图像并使用我自己的自定义叠加层,但是当隐藏相机控件时,手动对焦功能也会被隐藏。 我什至达到了将 UIApplication 子类化以捕获触摸事件并使 ImagePicker 继续接收事件以执行手动对焦功能的地步。它与showCameraControls = YES一起使用,但这不是我想要的。

  • 有没有办法在 3GS 上调用焦点?
  • 有没有办法隐藏相机控件,但不隐藏处理触摸事件的视图(viewController)?
  • 有没有办法让我使用默认的相机控件(带有覆盖层)但仍然以编程方式拍摄连续照片?

我将非常感谢所提供的任何帮助。

Im developing a program that makes use of UIImagePicker custom class made by me, and the thing is I want to be able to use the manual-focus feature on the 3GS (the part where the user points where the camera should focus) and at the same time to use custom overlay view.
I
ve set showsCameraControls to NO so that the images could be taken programmatically and to make use of my own custom overlay but when the camera controls are hidden so is the manual focus feature.
I even got to the point where I subclassed UIApplication to catch the touch events and for the ImagePicker to continue to receive the events in order to execute the manual focus feature. And it worked with showsCameraControls = YES but that`s not what I want.

  • Is there a way to invoke focus on the 3GS?
  • Is there a way that camera controls are hidden but not the view (viewController) which is handling the touch events?
  • Is there a way for me to use the default camera controls (with an overlay) but still take consecutive pictures programmatically?

I`ll be very grateful for any help provided.

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

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

发布评论

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

评论(1

笑着哭最痛 2024-08-15 21:56:39

不幸的是,没有对自动对焦的编程控制。当相机控件隐藏时,无法调用焦点。 (来源来自 Apple 开发者论坛,其中 OP(或其他人)发布了同样的问题)。

Unfortunately, there is no programmatic control over autofocus. When the camera controls are hidden, there is no way to invoke focus. (Source from the Apple developer forums, where the OP (or someone else) posted the same question).

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