gpt4 book ai didi

ios - UIImagePickerController 在相机胶卷中打开

转载 作者:可可西里 更新时间:2023-11-01 03:56:02 24 4
gpt4 key购买 nike

是否可以直接使用 UIImagePickerController 打开相机胶卷,但仍然有返回相册列表的按钮?

UIImagePickerControllerSourceTypeSavedPhotosAlbum 将只打开相机胶卷,没有滑回相册的选项。

最佳答案

不幸的是,答案是——这是不可能的。至少不通过任何标准接口(interface)。可能会进行一些 View 层次结构挖掘或方法混合来实现它,但随后您可能会与 App Store 提交审查发生冲突。

来自Camera Programming Topics of iOS (粗体强调我的):

Instead of using the camera as the media source, you use the Camera Roll album or Saved Photos album, or the entire photo library.

并且:

Source type To configure the picker for browsing saved media as opposed to capturing a new picture or movie, set its sourceType property to one of the saved photo sources:

Use UIImagePickerControllerSourceTypePhotoLibrary to present a browser that provides access to all the photo albums on the device, including the Camera Roll album on devices that have a camera.

Use UIImagePickerControllerSourceTypeSavedPhotosAlbum to present a browser that restricts access to the Camera Roll album on devices that have a camera, or to the Saved Photos album on devices that don’t.

关于ios - UIImagePickerController 在相机胶卷中打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21457868/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com