【问题标题】:Touch and focus on 3GS with showsCameraControls = NO使用 showsCameraControls = NO 触摸并专注于 3GS
【发布时间】:2025-11-22 12:45:01
【问题描述】:

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. Ive 将 showsCameraControls 设置为 NO,以便可以通过编程方式拍摄图像并使用我自己的自定义叠加层,但是当相机控件被隐藏时,手动对焦功能也是如此。 我什至将 UIApplication 子类化以捕获触摸事件并让 ImagePicker 继续接收事件以执行手动对焦功能。它与 showsCameraControls = YES 一起使用,但这不是我想要的。

  • 有没有办法调用对 3GS 的关注?
  • 有没有办法隐藏相机控件而不隐藏处理触摸事件的视图 (viewController)?
  • 有没有办法让我使用默认的相机控件(带有叠加层)但仍以编程方式连续拍摄照片?

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

【问题讨论】:

    标签: iphone camera uiimagepickercontroller iphone-3gs


    【解决方案1】:

    很遗憾,自动对焦没有程序控制。当相机控件被隐藏时,无法调用焦点。 (Source from the Apple developer forums,OP(或其他人)发布了同样的问题)。

    【讨论】:

      最近更新 更多