Use camera as overlay for uiview iPhone
I was wondering if it was possible to make the camera feed appear in a custom screen. Basically I have a uiview that I want the camera feed to appear in. I would then have custom buttons on the screen and stuff like that to take pictures and then email out the pi开发者_StackOverflow中文版ctures.
Is there an easy way to do this, that will not get rejected upon app review? I have read before about using UIImagePicker and using cameraOverlayView, but I could not get that to work.
Sample code is greatly appreciated. Thanks in advance for your help!
Yes, you can use AVCaptureVideoPreviewLayer from the AVFoundation framework.
精彩评论