I have local HTML files that I'm displaying with UIWebView. Everything looks OK except for the embedded images in SVG-tags, such as:
& Lt; / Svg & gt; & Lt; / Div & gt; & Lt; / Body & gt; Normal & lt; Img & gt; Tags work fine, so there is nothing wrong with the baseURL, and the image is in the same folder. The HTML file in the Mobile Safari is OK I have tried to load the load, and - LoadString: baseURL: and - Load Data: MIMEType: textEncodingName: baseURL, but I always get the range corresponding to the width and height of the image without the actual image. What could be wrong?
Finally resolved this issue. DOCTYPE was set to strict XHTML:
But the file extension was html.
Changing the file extension to .xhtml solved the problem.
Comments
Post a Comment