如何“简化” UIImagePickerController

发布于 2024-07-08 10:37:45 字数 116 浏览 4 评论 0原文

我正在使用 UIImagePickerController 拍照,涉及两个步骤,“拍照”和“使用照片”。 有什么方法可以覆盖该行为,将这两个操作合并为一个吗? 说“拍摄并使用照片”。

谢谢。

I am using UIImagePickerController to take photo, there are two steps involved, "Take photo" and "Use photo". Is there any way to override the behavior, merge these two action in one? Say "Take and use photo".

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

后知后觉 2024-07-15 10:37:45

当前的 SDK 无法做到这一点,您应该提交一个 bug 来请求该功能。 有一些已发布的示例,人们在视图层次结构中爬行,以编程方式读取表面并触发 UI 元素,但这些操作起来很复杂,可能会产生奇怪的视觉伪影,从而导致支持问题,并且可能会因固件更新而中断。

There is no way in the current SDK to do this, you should file a bug requesting the feature. There are some published examples where people crawl around in the view hierarchy to programmatically read surfaces and trigger UI elements, but those are complex to do, can have weird visual artifacts that cause support issues, and are likely to break with firmware updates.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文