gpt4 book ai didi

ios - Swift:如何更改 UIImagePickerController 的按钮 "Use Photo"、 "Cancel"、 "Shoot"、 "Retake"的默认行为

转载 作者:行者123 更新时间:2023-11-29 01:19:31 25 4
gpt4 key购买 nike

如解释here我需要稍微修改标题中列出的按钮的 Action /行为。我想避免像一些帖子建议的那样构建一个新的图像选择器覆盖。我只需要将对我的一种方法的调用添加到默认操作中。有没有一种简单的方法可以做到这一点?

最佳答案

你不能。

UIImagePickerController class reference 中所述:

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. An image picker controller manages user interactions and delivers the results of those interactions to a delegate object.

然后:

To perform fully-customized image or movie capture, instead use the AV Foundation framework as described in Media Capture and Access to Camera.

关于ios - Swift:如何更改 UIImagePickerController 的按钮 "Use Photo"、 "Cancel"、 "Shoot"、 "Retake"的默认行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34771856/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com