Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
寻找Android HTTP请求的iPhone等效代码_Iphone_Android_Web Services - Fatal编程技术网

寻找Android HTTP请求的iPhone等效代码

寻找Android HTTP请求的iPhone等效代码,iphone,android,web-services,Iphone,Android,Web Services,我有android web服务代码,必须移植到iOS。android HTTP请求代码中有一行代码 httppost.setEntity(new StringEntity(myChallenge)); HttpResponse myResponse = httpclient.execute(httppost); setEntity(新StringEntity(myChallenge)); HttpResponse myResponse=httpclient.execute(httppost);

我有android web服务代码,必须移植到iOS。android HTTP请求代码中有一行代码

httppost.setEntity(new StringEntity(myChallenge)); HttpResponse myResponse = httpclient.execute(httppost); setEntity(新StringEntity(myChallenge)); HttpResponse myResponse=httpclient.execute(httppost); 我是iOS开发新手,所以我不清楚如何在iOS编程中移植或编写上述代码。任何帮助都会很有帮助。提前谢谢

Zach

看看ASIHTTPRequest(谷歌it)。非常好的HTTP库,具有您所熟悉的一组类似的功能。(当然不一样,但您想做的所有事情都可以使用AsitpRequest完成。)