如何在关闭相机选择器之前拍摄多张照片
我希望能够展示相机选择器,并在关闭模态视图之前拍摄多张照片。我还想显示用户在视图被关闭之前拍摄了多少张照片。这可能吗?我知道我必须使用叠加层来进行图像计数,但我不知道如何在关闭它之前拍摄多张照片。我似乎找不到任何有关它的信息。谢谢。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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!看看
UIImagePickerController
以编程方式启动静态图像捕获。您可以在收到
imagePickerController:didFinishPickingMediaWithInfo:
委托回调后启动其他捕获。希望有帮助。
Take a look at
takePicture
method ofUIImagePickerController
which programatically initiates still image capture.You can initiate additional captures after receiving
imagePickerController:didFinishPickingMediaWithInfo:
delegate callback.Hope it helps.