从iPhone代码访问相册 [英] Access Photo Album from iPhone Code

查看:134
本文介绍了从iPhone代码访问相册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像图片地图这样的iPhone应用程序访问iPhone相机相册中的所有照片并显示它们而不显示图像选择器控件。



有谁知道这是怎么回事完成了?



谢谢
G

解决方案

这个是一个老线程,但我会回答,因为我是编写和发布图片地图的人!



托马斯是对的,我正在访问DCIM文件夹来解析每个文件(从EXIF结构获取其位置并访问缩略图)。



由于应用程序无权访问其沙箱之外的文件,Apple要求我删除来自AppStore的应用程序......无论如何,自iOS 4.0以来,应用程序再也无法访问DCIM文件夹了!



我确实重写了应用程序以使用ALAsset类和再次以Picture-Map的名义发布!源代码也可在此处获得: https://github.com/sylverb/Picture-Map


iPhone Apps like "Picture Map" access all the photos in my iPhone's camera album and display them without ever showing an Image Picker Control.

Does anyone know how this is done?

Thanks G

解决方案

This is an old thread but I will answer as I'm the one who wrote and published Picture Map !

Thomas is right, I was accessing the DCIM folder to parse each file (to get its location from the EXIF structure and to access thumbnails too).

As an application has no right to access files outside of its sandbox, Apple asked me to remove the application from the AppStore ... And anyway, since iOS 4.0, application are not able to access DCIM folder anymore !

I did rewrite the application to use ALAsset class and published it again under the name of "Picture-Map" ! The source code is also available here : https://github.com/sylverb/Picture-Map

这篇关于从iPhone代码访问相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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