有关从iPhone拨打网络服务的问题?
解决方案
这在大多数移动设备上要简单得多, / p>
最佳实践 - 使用操作(NSOperation)来处理请求 - 这是我发现减少网络调用的线程复杂性,
您可以考虑使用JSON进行调用 - 此库非常有用: github/stig/json-framework/
但是你应该很容易使用正常的iPhone命令来发出网络请求。
教程:SeismicXML或去看看斯坦福讲座CS193P - 演讲9应该是你的一杯茶!
www.stanford.edu/class/cs193p/cgi-bin/index.php
Questions on calling web services from iPhone?
解决方案
This is much simpler to do than on most mobile devices - and more robust (in my opinion).
Best practices - use operations (NSOperation) to handle the requests - this is the best way I have found to reduce the complexities of threading with web calls and take everything off the main thread.
For security make HTTPS calls.
You might want to consider using JSON for the call - then this library is useful : github/stig/json-framework/
However you should find it very easy to make web requests with the normal iPhone commands.
Ah yes a tutorial: SeismicXML or go and check out the Stanford lectures for CS193P - lecture 9 should be your cup of tea!
www.stanford.edu/class/cs193p/cgi-bin/index.php
更多推荐
从iPhone访问Web服务
发布评论