简体   繁体   English

在iPhone上自定义相机预览?

[英]custom camera preview on the iPhone?

I have two of my apps rejected by Apple and sitting on the "shelves of approval" for 2 months, because both apps were using UIImagePickerController and I dared to add a rectangle on top of the UIImagePickerController, using something as 我有两个应用程序被Apple拒绝,并在“批准书架”上坐了2个月,因为两个应用程序都使用UIImagePickerController,并且我敢于在UIImagePickerController顶部添加一个矩形,使用

[picker.view addSubView:rectangle];

On the other hand, applications like CameraZoom and others, ditch the UIImagePickerController regular appearance completely and has its own interface, with custom graphics and sliders on top of the camera preview and even with the ability to zoom the preview image in real-time. 另一方面,CameraZoom等应用程序完全放弃了UIImagePickerController的常规外观,并拥有自己的界面,在相机预览的顶部带有自定义图形和滑块,甚至具有实时缩放预览图像的功能。

My question is: how can one do that and not be crucified by Apple? 我的问题是:如何做到这一点而不被苹果钉在十字架上?

thanks for any insight! 感谢您的任何见解!

As far as I know, it's been hit and miss. 据我所知,它受到了打击和错过。 Some apps get through, some don't, and it's really quite annoying (as is app approval in general). 有些应用程序通过,有些则无法通过,这确实很烦人(通常是应用程序批准)。

In SDK 3.1, there is a new Camera Overlay concept, where you can overlay your own view on top of the camera view. 在SDK 3.1中,有一个新的“相机覆盖”概念,您可以在其中将自己的视图覆盖在相机视图之上。 You can find more documentation on the iPhone Developer website (since it is 3.1, it is under NDA). 您可以在iPhone Developer网站上找到更多文档(因为它是3.1,所以它在NDA下)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM