简体   繁体   English

从Iphone / IOS的​​网站目录中获取所有文件URL的列表,并将其存储在NSMutableArray中

[英]Get A List of all files's url from a Website Directory in Iphone / IOS and store them in NSMutableArray

I Want to list all the file's urls. 我想列出所有文件的网址。 Files are present on a website. 文件存在于网站上。 They are in a public directory in a website. 它们位于网站的公共目录中。 No Ftp access is required to access the urls. 不需要Ftp访问即可访问URL。 So no ftp based programming is needed. 因此,不需要基于ftp的编程。

For example- www.mysite.com/myimages/(multiple files) 例如-www.mysite.com/myimages/(多个文件)

I want to store All the files URL path in NSMutableArray. 我想将所有文件的URL路径存储在NSMutableArray中。 Can anybody assist me or explain me the proper way to do this in iphone using objective c. 任何人都可以使用目标c在iphone中协助我或向我解释正确的方法。

Hope to Get a Solution, Thank You, Tuhin Bhatt 希望得到解决方案,谢谢您,Tuhin Bhatt

I think below approach will be one to solve the problem. 我认为以下方法将是解决问题的一种方法。

You have to make a simple web-service api that will simple return the all url links in json / xml format. 您必须制作一个简单的网络服务api,该API会简单地返回json / xml格式的所有url链接。 Then you parse the response and store those in a NSMutableArray 然后解析响应并将其存储在NSMutableArray中

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

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