在iOS上使用Web服务的最佳方式? [英] Best way of using web services on iOS?

查看:105
本文介绍了在iOS上使用Web服务的最佳方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想构建一个iOS应用程序,让您登录到Web服务。

I'd like to build an iOS app which lets you log in to a web service.

之后,应用程序将(当用户选择时)通过https发送登录名/ pass以及请求的变量。例如,在请求新闻更新之后,它将以XML格式收到所请求的信息......类似于:

After that, the app would (when the user chooses) send the login name/pass, together with the requested variable(s), over https. For instance after requesting 'news-update', it would receive the requested info in XML format... something like:

<news-update>
  <title>Kim Jong-un Promoted</title>
  <story>North Korean leader Kim Jong-il's youngest son, Kim Jong-un, has been appointed a general, amid rumours he is being anointed as successor...</story>
</news-update>

我应该使用哪些API和技术来完成这些任务?我不想使用任何UIWebViews,而是使用标准的UI元素。

What APIs and techniques should I use for these kind of tasks? I don't want to use any UIWebViews, but instead use standard UI elements.

推荐答案

@Ole所说的,除了使用 ASIHTTPRequest 通过网络发送和接收数据。

What @Ole said, except instead use ASIHTTPRequest to send and receive data over the network.

这篇关于在iOS上使用Web服务的最佳方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆