[英]Replace shoot and retake button UIImagePickerController
Is there a simple way to replace the default shoot and retake buttons on a UIImagePickerController
? 有没有一种简单的方法可以替换
UIImagePickerController
上的默认拍摄和重新拍摄按钮? I have my custom images ready and all I need is the shoot and retake buttton. 我已经准备好自定义图像,而我所要做的就是拍摄和重新拍摄。
How can I use my custom images in place of the default ones? 如何使用我的自定义图像代替默认图像? I currently have a camera overlay with guides for the camera I just need to replace the buttons.
我目前有一个带有摄像机指南的摄像机覆盖层,我只需要更换按钮即可。
First of all, keep in mind that UIImagePickerController uses so much memory, an iphone 4 or 4s will give memory warnings if you do almost any conversion from UIImage to NSData. 首先,请记住,UIImagePickerController使用了太多内存,如果您几乎执行从UIImage到NSData的任何转换,iphone 4或4s都会发出内存警告。 Having said this, you can solve your problem of replacing the shoot and retake buttons and have a better camera implementation by using AVFoundation.
话虽如此,您可以使用AVFoundation解决替换拍摄和重新拍摄按钮的问题,并实现更好的相机实现。 Here is a great example that is pretty straightforward:
这是一个非常简单的好例子:
http://red-glasses.com/index.php/tutorials/ios4-take-photos-with-live-video-preview-using-avfoundation/ http://red-glasses.com/index.php/tutorials/ios4-take-photos-with-live-video-preview-using-avfoundation/
and another: 另一个:
http://www.musicalgeometry.com/?p=1297 http://www.musicalgeometry.com/?p=1297
Hope this helps, feel free to ask me more about it. 希望这对您有所帮助,请随时向我询问更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.