如何在 UIImagePickerController 的自定义控件中使用不同模式之间的切换? [英] How to use switch between different modes in UIImagePickerController's custom controls?

查看:25
本文介绍了如何在 UIImagePickerController 的自定义控件中使用不同模式之间的切换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

picker.showsCameraControls = NO;
picker.cameraOverlayView = someView;

因为我将向 showCameraControls 添加一些自定义视图,那么我如何在模式之间切换,例如 iphone 的本机应用程序在相机和录制之间切换,就像我想在相机和另一台带有按钮的相机之间切换一样,我该怎么做?帮助!

As I will add some custom view to showCameraControls, then how can I switch in between modes, like native app of iphone switches between camera and recording, same as I want to switch between camera and one more camera having button on it, how can I do it? Help !

推荐答案

这个 示例项目向您展示了如何为 UIImagePickerController 制作自己的自定义叠加层,以及如何使用它.有关 UIImagePickerController 的每个属性和方法的详细信息,请参阅 这里.希望有帮助!

This sample project shows you how to make your own custom overlay for the UIImagePickerController, and how to use it. For more info on what each of the properties and methods do for the UIImagePickerController, refer here. Hope that helps!

这篇关于如何在 UIImagePickerController 的自定义控件中使用不同模式之间的切换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆