NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"myfile" ofType:@"html"];
NSString* htmlString = [NSString stringWithContentsOfFile:htmlFile encoding:NSUTF8StringEncoding error:nil];
NSLog(@"The html string is %@",htmlString);
[_Webview loadHTMLString:htmlString baseURL:nil];
Asked
Active
Viewed 68 times
-2

Wain
- 118,658
- 15
- 128
- 151

Pavan Jain
- 171
- 1
- 4
-
try this if you load local image http://stackoverflow.com/questions/747407/using-html-and-local-images-within-uiwebview – Huy Nghia Mar 09 '15 at 10:18
-
Note: upload tends to mean sent **to** the server. `loadHTMLString:` loads a file **from** the server to the device. You need to update the question. Also where are the images and what is the html that references the images? – zaph Mar 09 '15 at 10:36
1 Answers
0
I think if your html file or string have the url for the image then it will load it automatically you won't have to worry about it. look at your html file and make sure that you get your image url properly in html string.

Jerin T George
- 64
- 7