0
Je chargeais html sur le site en utilisant comme suitHtml ne se charge pas dans UIWebView
-(void)connectionDidFinishLoading:(NSURLConnection *)connection{
//CategoriesParser *parser=[[CategoriesParser alloc]init];
//[parser setDelegate:self];
//[parser startParsing:xmlData];
NSString *[email protected]"<html><head></head><body>";
NSString* newStr = [[[NSString alloc] initWithData:urlData
encoding:NSUTF8StringEncoding] autorelease];
newStr=[NSString stringWithFormat:@"<html><head></head><body>%@</body></html>",newStr];
[webView loadHTMLString:newStr baseURL:nil];
}
, mais malheureusement, il montre le code html sur WebView comme
<p style="text-align: justify;"><span style="font-family: helvetica; font-size: small;">The UAE manages what some Arab cities fail to achieve;
etc
Alors s'il vous plaît aider ce que je fais mal en chargeant la chaîne html dans le webview
ce qui est urlData? – Jessedc
pouvez-vous enregistrer la chaîne html ..? – vishy
Qu'est-ce que les données d'URL ... – Rajneesh071