2011-10-26 50 views
1

我发送请求到服务器在我的应用程序和服务器返回响应 例子:ASIhttprequest转换响应的NSString

ASIhttprequest *request;.......-> sending request....... 

Reciving请求.........-> 的NSLog( @“%@”,[请求响应]);

的请求返回这样的:

<html xmlns="http://www.w3.org/1999/xhtml"> 

<div> 

</div> 
</form> 

任何想法,我能在这里做转换此回应

回答

0

要从ASI获得NSString,您需要使用responseString属性,而不仅仅是response。例如:

NSLog(@"%@", [request responseString]);