我想知道如果我试图通过wifi连接将Windows机器上共享文件夹中的文件内容写入iphone上的数组,是否有人可以帮助我指出正确的方向。
我可以用 initWithContentsOfURL 来做吗?
谢谢您的帮助
我想知道如果我试图通过wifi连接将Windows机器上共享文件夹中的文件内容写入iphone上的数组,是否有人可以帮助我指出正确的方向。
我可以用 initWithContentsOfURL 来做吗?
谢谢您的帮助
initWithContentsOfUrl
reads files produced by the writeToURL:atomically:
method. These two methods require an HTTP server to work, so you would need to setup IIS or Apache on the windows box.
What you want is an iPhone samba client.
Samba is an open source implementation of networking protocols to share files and printers between Unix computers and Windows.
I did some searches but didn't find anything worth linking. Someone else chime in here...
我刚刚开始为 iOS 构建一个简单的 Windows 网络共享库: https ://github.com/38leinaD/tango
目前它只允许列出一个目录,但我计划将它扩展到至少读取一个写入文件。但我不知道我什么时候才能找到动力。SMB/CIFS 是一个非常肮脏的协议,使用起来并没有什么乐趣......