Question

i want to load just the html from the web and show the images from the local resource.

This helped me a lot, but is the path to the resource on every device the same? Or does it depend on an installation path or similar? Load Content in the UIWebView on the Iphone

Was it helpful?

Solution

the path to resources is different on every device, that's why you use the function

[[NSBundle mainBundle] pathForResource:nameOfImage ofType:@"jpg"]

the html loading from the web you can do all kinds of ways. The easiest is just:

NSString *myHTML = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://web.site.com/file.html"]];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top