Iphone ASIhttprequest将响应转换为NSString
我正在向应用程序中的服务器发送请求,服务器返回响应 例如:Iphone ASIhttprequest将响应转换为NSString,iphone,objective-c,ios,Iphone,Objective C,Ios,我正在向应用程序中的服务器发送请求,服务器返回响应 例如: ASIhttprequest *request;.......-> sending request....... 接收请求………-> NSlog(@“%@,[请求-响应]) 请求返回如下所示: <html xmlns="http://www.w3.org/1999/xhtml"> 您知道我可以从这里做些什么来转换此响应吗?要从ASI获取NSString,您需要使用responseString属性,
ASIhttprequest *request;.......-> sending request.......
接收请求………->
NSlog(@“%@,[请求-响应])
请求返回如下所示:
<html xmlns="http://www.w3.org/1999/xhtml">
您知道我可以从这里做些什么来转换此响应吗?要从ASI获取
NSString
,您需要使用responseString
属性,而不仅仅是response
。例如:
NSLog(@“%@,[request-responseString])代码>
<div>
</div>
</form>