【问题标题】:I want to get timestamps for all photos in the camera roll我想获取相机胶卷中所有照片的时间戳
【发布时间】:2014-01-06 04:32:33
【问题描述】:

我猜 App 沙盒是这里的关键问题。

UIImagePickerController 将允许用户从相机胶卷中选择单张照片,与 Steroids/PhoneGap 相机 API 相同。

ELCImagePickerController 在原生应用中支持多选。

ALAssetsLibrary 似乎很有希望,但 PhotosByLocation 示例项目说,“资产需要从 iTunes 同步到设备才能显示在选择器中”,这让我认为它不能完全访问相机滚动。

是否有一个容易获得用户许可来扫描相机胶卷中的所有照片以提取和绘制照片时间戳的图表?建议使用 html5 框架解决方案...

【问题讨论】:

    标签: ios camera uiimagepickercontroller alassetslibrary photo-gallery


    【解决方案1】:

    我再次阅读了ALAssetsLibrary 的 API 文档,发现了以下内容:

    ALAssetsGroupSavedPhotos - All the photos in the Camera Roll.
    
    ALAssetsGroupAlbum - All the albums created on the device or synced from iTunes, 
       not including Photo Stream or Shared Streams
    

    所以我猜测 ALAssetsLibrary 确实是我用来遍历相机胶卷中所有照片的类。有人可以确认这是我获得访问权限所需的全部内容吗?

    [ALAssetsLibrary authorizationStatus] == ALAuthorizationStatusAuthorized;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-24
      • 2011-11-26
      • 1970-01-01
      • 2014-09-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多