使用showCameraControls 触摸并聚焦3GS = NO
我正在开发一个程序,该程序使用我制作的 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.
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
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,没有对自动对焦的编程控制。当相机控件隐藏时,无法调用焦点。 (来源来自 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).