相机覆盖层的定制 [英] customization of the camera overlay

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

问题描述

我的第一个自定义问题是在.img src ="https://i.stack.imgur.com/HQdWh.png" alt =在此处输入图片描述"

我知道我刚刚搞砸了,请就这个问题向我提出建议.

解决方案

您必须在视图上设置clearColor,否则您将看不到相机图层.

My first question for customization is at here and with help from Mat. I can customize it. Now I would like to customize the overlay by loading and view from a nib file... What I am to do is

Create another UIViewController called myCustomVIew with its xib

Add a toolbar on top and some buttons onto it

Set controller.cameraOverlay = aView.view

Please take a look at here, so that you can picture what I am doing so far

However when I run my app, the view is shown at here.

I know I have just screwed up somewhere, please advice me about this issue.

解决方案

You have to set a clearColor on the view, otherwise you can't see the camera layer.

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

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