简体   繁体   English

如何以编程方式访问 iphone Memory 卡(SDcard)

[英]How to access iphone Memory card (SDcard) programmatically

I want to access sdcard of iphone, I have some question regarding this.我想访问 iphone 的 sdcard,对此我有一些疑问。

  1. by searching little bit i think iphone donot support sdcard?通过搜索一点我认为iphone不支持sdcard? if it support SDcard then kindly tell how we access iphone expanded memory what is path path of external storage of iphone.如果它支持 SD 卡,那么请告诉我们如何访问 iphone 扩展 memory 什么是 iphone 外部存储的路径路径。 for example as in android we can access sdcard directory by例如在 android 我们可以访问 sdcard 目录

    Environment.getExternalStorageDirectory(); Environment.getExternalStorageDirectory(); ( return path to sdcard in android ) (android 中 sdcard 的返回路径)

  2. how to see sdcard contents in emulator of like in eclipse we can see android's SDcard folder in Forlder explorer any thing like this is in iphone?如何在 eclipse 中的模拟器中查看 sdcard 内容我们可以在 Forlder explorer 中看到 android 的 SDcard 文件夹,任何类似的东西在 iphone 中?

  3. how to get list of sdcard contents.如何获取 sdcard 内容列表。

There is no SD card.没有 SD 卡。

Applications may only access their own sandbox Documents and cache folders.应用程序只能访问自己的沙箱文档和缓存文件夹。 If you need to transfer files, you have three options:如果您需要传输文件,您有以下三种选择:

  1. E-mail.电子邮件。
  2. iTunes File Sharing iTunes 文件共享
  3. iCloud iCloud

hello salman Roy First of all i want to tell you that there is no external sdcard like android in the iphone or ipad.it is all sandbox environment.And one more thing for the iphone development there is no emulator its a simulator.你好萨尔曼罗伊首先我想告诉你,在iphone中没有像android或ipad这样的外部SD卡。它都是沙盒环境。对于iphone开发来说还有一件事是没有模拟器,它是模拟器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM