Get image and text of webservice



I'm having problems displaying the image of the xml below,



<item diffgr:id="item1" msdata:rowOrder="0">
<title>
22 Aug 2014 - Viagem
</title>
<description>
Teste texto descrição viagem
</description>
<link>
http://ift.tt/1rvKo7d
</link>
</item>


I'm using the code below to show the webview, the problem is webview shows me the values ​​as string.



NSURL *myURL = [NSURL URLWithString: [self.url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSURLRequest *request = [NSURLRequest requestWithURL:myURL];
[self.webView loadRequest:request];


Result is:22 Aug 2014 - Viagem Teste texto descrição viagem http://ift.tt/1rvKo7d


No comments:

Post a Comment