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