iPhone:相机预览覆盖 [英] iPhone: Camera Preview Overlay
本文介绍了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屋!
查看全文