views:

597

answers:

2

Hello, 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? http://stackoverflow.com/questions/1577576/show-content-with-uiwebview-on-the-iphone

+1  A: 

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"]];
Kenny Winker
A: 

is there a possibility to load a part of it from the web and a part locally,... so that the webbased document includes local images

Ploetzeneder