![](/img/trans.png)
[英]iPhone: How to get the contents of the documents directory as a NSMutableArray?
[英]Get A List of all files's url from a Website Directory in Iphone / IOS and store them in NSMutableArray
我想列出所有文件的網址。 文件存在於網站上。 它們位於網站的公共目錄中。 不需要Ftp訪問即可訪問URL。 因此,不需要基於ftp的編程。
例如-www.mysite.com/myimages/(多個文件)
我想將所有文件的URL路徑存儲在NSMutableArray中。 任何人都可以使用目標c在iphone中協助我或向我解釋正確的方法。
希望得到解決方案,謝謝您,Tuhin Bhatt
我認為以下方法將是解決問題的一種方法。
您必須制作一個簡單的網絡服務api,該API會簡單地返回json / xml格式的所有url鏈接。 然后解析響應並將其存儲在NSMutableArray中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.