是否可以删除在前后摄像头之间切换的 UIImagePickerController 中的小旋转图标?这是一款不会进入 Apple Store 的应用程序,它只能在一台设备上使用。我能做些什么吗?我看到我可以做到这一点,但它也删除了录制按钮。
cameraUI.showsCameraControls = NO;
最佳答案
不幸的是,没有直接的方法来关闭 1 个特定的相机控制。
您可以做的是执行以下操作:
// Create a view that recreates the camera control functions you need.
// Your view will need to be able to set the following properties on camera UI
// cameraCaptureMode, cameraFlashMode (NOT cameraDevice, which is the control you want to disappear)
UIView* customOverlay = [..way to create your custom overlay..];
cameraUI.showsCameraControls = NO;
cameraUI.cameraOverlayView = customOverlay;
如果您需要知道如何创建自定义叠加层,可能值得提出另一个问题。
关于ios - 删除 UIImagePickerController 中的旋转图标?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13094110/