简体   繁体   English

替换拍摄并重新拍摄按钮UIImagePickerController

[英]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.

相关问题 UIImagePickerController - 自定义叠加(Swift)上的重新启动按钮 - UIImagePickerController - Retake button on custom Overlay (Swift) Swift:如何更改UIImagePickerController的“使用照片”,“取消”,“拍摄”,“重拍”按钮的默认行为 - Swift: how to change default behaviour of buttons “Use Photo”, “Cancel”, “Shoot”, “Retake” of UIImagePickerController 使用UIImagePickerController自定义“使用”,“取消”,“重拍”和“倒车”按钮事件 - Custom “Use”, “Cancel”,“Retake” and “Reverse Camera” button event using UIImagePickerController 如何在UIImagePickerController中访问“Retake”选项? - How to access “Retake” option in UIImagePickerController? 禁用重拍,播放和使用视频屏幕UIImagePickerController - Disable the retake, play and use video screen UIImagePickerController 带有覆盖的iOS 7 UIImagePickerController - 重新拍摄并使用不可用的照片 - iOS 7 UIImagePickerController with Overlay - retake and use photo not usable UIImagePickerController 使用照片/重拍按钮不起作用 - UIImagePickerController Use Photo / Retake buttons don't work 强制UIImagePickerController以横向模式拍摄视频 - Forcing UIImagePickerController to shoot video in landscape mode 如何在兼容的 iPhone 上使用 UIImagePickerController 拍摄 4K 视频? - How to shoot 4K video using UIImagePickerController on compatible iPhones? UIImagePickerController在UpperCase Letters“USE_PHOTO”,“RETAKE”和Gallery Images“CAMERA_ROLL”中显示文本? - UIImagePickerController shows text in UpperCase Letters “USE_PHOTO” , “RETAKE” and Gallery Images “CAMERA_ROLL”?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM