iPhone iOS 4.3 相机焦点方形 - 可以通过编程方式删除吗?
自从我的朋友将他的 iPhone iOS 更新到 4.3 后,每次他用相机拍照时都会出现一个小方块。 我们正在开发一个使用相机的应用程序,并希望删除这个恼人的方块。我在 Apple 的 UIImagePickerController 文档中没有找到任何有关它的信息。 以前的 iOS 版本中不存在该正方形。
Since my friend updated his iPhone iOS to 4.3 there's a small square which appears every time he takes a picture with the camera.
We're developing an app that uses the camera and would like to remove this annoying square. I didn't find anything about it in Apple's UIImagePickerController documentation.
The square didn't exist in former iOS versions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能想尝试锁定焦点以禁用自动对焦。这是示例代码:
You may want to try to lock the focus to disable auto-focus. Here is a sample code:
将选择器控制器的
.showsCameraControls
属性设置为NO
应该会删除焦点方块(在 4.3 之前确实如此,我认为没有任何变化),但缺点是您需要提供自己的控件(拍照等)。我担心要么全有,要么全无!Setting the
.showsCameraControls
property of your picker controller toNO
should remove the focus square (it did pre 4.3, I don't think anything has changed), but the downside is you'll need to provide your own controls (to take photos, etc). It's all or nothing I'm afraid!创建自定义叠加层,默认叠加层将不会显示。您可以使您的覆盖层完全为空。
Create a custom overlay and default overlay will not display. You can make your overlay can be completely empty.