如何去掉屏幕底部允许您在 xcode 中拍照的栏?

How do I get rid of the bar on the bottom of the screen that allows you to take pictures in xcode?

我希望用户能够从后置摄像头看到内容,但我不希望他们可以选择拍照。有没有我可以调用的函数来关闭此功能?

我 运行 遇到过类似的情况。您将要使用 AVFoundation 来构建您自己的界面。您的问题不够具体,所以我将假设您的情况:您正试图隐藏 UIImagePicker 按钮,因此用户无法拍照。 UIImagePicker 提供的自定义方式不多,因此 AVFoundation 将是您最好的选择。查看来自 Jameson Quave 的 this 教程,它应该可以帮助您了解前进的方向。干杯!