iPhone:相机预览叠加 [英] iPhone: Camera Preview Overlay

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

问题描述

如何在相机预览中添加重叠式广告( UIImageView ),以及
处理此操作?

How do I add an overlay (UIImageView) to the camera preview and handle touches on this?

我之前尝试执行此操作(例如使用 UIImagePickerController 并将图像作为子视图添加)失败。

My previous attempts to do this (e.g. use UIImagePickerController and add the image as a subview) have failed.

推荐答案

本教程解释: http:// www .musicalgeometry.com /?p = 821

只需在叠加视图中添加UIImage,而不是教程中显示的红色区域。

Just add a UIImage in the overlay view instead of the red area shown in the tutorial.

这篇关于iPhone:相机预览叠加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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