大家好我发布了2张HTML.One的图片是我从DATABASE得到的HTML,其他是我试图用web替换显示html图像的路径,但我无法加载图片请帮助我。 ...
应用此代码后
NSString *html = [[arr objectAtIndex:0] objectForKey:@"Text"];
NSString *path = [[NSBundle mainBundle] pathForResource:@"Help05" ofType:@".png"];
NSString *fixedURL = [path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString * str = [NSString stringWithFormat:@“\”%@ \“”,fixedURL]; html = [html stringByReplacingOccurrencesOfString:@“ImagePath”withString:str];
2)之后