I was wondering if anyone could help point me in 开发者_如何转开发the right direction if I am trying to write the contents of a file from a shared folder on a windows machine to an array on the iphone over a wifi connection.
could I do it with initWithContentsOfURL??
thanks for the help
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...
I just started on building a simple windows network share library for the iOS: https://github.com/38leinaD/tango
At the moment it only allows to list a directory, but i plan to extend it to at least reading an writing files. But i don't know when i will find the motivation. SMB/CIFS is a very dirty protocol and not much fun to work with...
精彩评论