简体   繁体   English

Swift:如何更改UIImagePickerController的“使用照片”,“取消”,“拍摄”,“重拍”按钮的默认行为

[英]Swift: how to change default behaviour of buttons “Use Photo”, “Cancel”, “Shoot”, “Retake” of UIImagePickerController

As explained here I would need to modify a little the actions/behaviour of the buttons listed in titled. 如此处所述我将需要修改标题中列出的按钮的动作/行为。 I would like to avoid to build a new image picker overlay as some posts suggest. 我希望避免像某些帖子所建议的那样构建新的图像选择器叠加层。 I just need to add a call to one of my methods into default actions. 我只需要在默认操作中添加对方法之一的调用即可。 Isn't there a simple way to do this? 有没有简单的方法可以做到这一点?

You can't. 你不能

As explained in the UIImagePickerController class reference : UIImagePickerController类参考中所述

The UIImagePickerController class manages customizable, system-supplied user interfaces for taking pictures and movies on supported devices, and for choosing saved images and movies for use in your app. UIImagePickerController类管理可自定义的,系统提供的用户界面,以在支持的设备上拍摄照片和电影,以及选择要在应用程序中使用的已保存图像和电影。 An image picker controller manages user interactions and delivers the results of those interactions to a delegate object. 图像选择器控制器管理用户交互,并将这些交互的结果传递给委托对象。

And then: 接着:

To perform fully-customized image or movie capture, instead use the AV Foundation framework as described in Media Capture and Access to Camera . 要执行完全自定义的图像或电影捕获,请使用Media Foundation 和Access to Camera中所述的AV Foundation框架。

暂无
暂无

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

相关问题 UIImagePickerController 使用照片/重拍按钮不起作用 - UIImagePickerController Use Photo / Retake buttons don't work 带有覆盖的iOS 7 UIImagePickerController - 重新拍摄并使用不可用的照片 - iOS 7 UIImagePickerController with Overlay - retake and use photo not usable 替换拍摄并重新拍摄按钮UIImagePickerController - Replace shoot and retake button UIImagePickerController 是否可以更改UIImagePickerController ..即(取消,使用,重拍等)的UIButton的动作? - is it possible to change the actions of the UIButtons for the UIImagePickerController.. i.e.(cancel, use, retake..etc…)? 相机“重拍”和“使用照片”按钮不起作用 - Camera " Retake " and " Use photo " buttons not working 使用UIImagePickerController自定义“使用”,“取消”,“重拍”和“倒车”按钮事件 - Custom “Use”, “Cancel”,“Retake” and “Reverse Camera” button event using UIImagePickerController 拍照时如何更改UIImagePickerController中按钮的颜色? - How to change color of the buttons within UIImagePickerController when taking a photo? 如何在UIImagePickerController中访问“Retake”选项? - How to access “Retake” option in UIImagePickerController? UIImagePickerController在UpperCase Letters“USE_PHOTO”,“RETAKE”和Gallery Images“CAMERA_ROLL”中显示文本? - UIImagePickerController shows text in UpperCase Letters “USE_PHOTO” , “RETAKE” and Gallery Images “CAMERA_ROLL”? UIImagePickerController - 自定义叠加(Swift)上的重新启动按钮 - UIImagePickerController - Retake button on custom Overlay (Swift)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM