如何在关闭相机选择器之前拍摄多张照片

发布于 2024-12-04 10:21:33 字数 123 浏览 0 评论 0原文

我希望能够展示相机选择器,并在关闭模态视图之前拍摄多张照片。我还想显示用户在视图被关闭之前拍摄了多少张照片。这可能吗?我知道我必须使用叠加层来进行图像计数,但我不知道如何在关闭它之前拍摄多张照片。我似乎找不到任何有关它的信息。谢谢。

I want to be able to present the camera picker, and take multiple pictures before dismissing the modal view. I would also like to display how many pictures the user has taken before the view is dismissed. Is this possible? I'm aware that I would have to use an overlay for the image count, but I don't know how to take multiple pictures before dismissing it. I can't seem to find any information on it. Thanks.

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

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

发布评论

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

评论(2

霊感 2024-12-11 10:21:33

PhotoPicker 是一个示例项目由 Apple 提供,它完全符合您所说的功能
关于。它甚至允许您制作自己的自定义 OverlayViewController 来显示额外的功能。希望有帮助!

PhotoPicker is a sample project provided by Apple which does exactly what you are talking
about. It even allows you to make your own custom OverlayViewController to display the extra features. Hope that Helps!

夏雨凉 2024-12-11 10:21:33

看看 UIImagePickerController 以编程方式启动静态图像捕获。

您可以在收到 imagePickerController:didFinishPickingMediaWithInfo: 委托回调后启动其他捕获。

希望有帮助。

Take a look at takePicture method of UIImagePickerController which programatically initiates still image capture.

You can initiate additional captures after receiving imagePickerController:didFinishPickingMediaWithInfo: delegate callback.

Hope it helps.

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