相机覆盖建议 [英] Suggestion for camera overlay

查看:40
本文介绍了相机覆盖建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想做一个应用程序,其中用户在打开应用程序时会打开相机,然后用户可以在相机打开的情况下键入内容.

Hi i want to make a applciation in which the user when open the application the camera gets open and then user can type with camera being on .

此链接或任何链接都需要一些提示,或者一些帮助教程可以做到.我认为打开相机后,我们需要在其上设置一个透明的叠加层控制器,并在该叠加层控制器上设置文本字段.我位于正确的路径上.

I need some sugestions for this or any link or some helping tutorial will do . I think after opening camera we need to set a transparent overlay contoller on it and text field on that overlay controller .Am i on correct path .

欢迎任何建议.

推荐答案

是的,这是正确的方法.查看 UIImagePickerController 文档,特别是其 cameraOverlayView 属性(您可以将其设置为包含UITextView或UITextField的透明视图,以将其覆盖在相机视图上)和 showsCameraControls 属性(您可以将其设置为 NO 来隐藏内置的拍照"按钮以及对焦控件等等).

Yep, that’s about the right approach. Check out the UIImagePickerController docs, specifically its cameraOverlayView property (which you can set to a transparent view containing your UITextView or UITextField to have it overlaid onto the camera view) and the showsCameraControls property (which you can set to NO to hide the built-in "take picture" button and focus controls and whatnot).

这篇关于相机覆盖建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆