html - iOS's UIWebView loading URL with apostrophe -
The one app I have a Thanks! What's the use of you have tried to load the file: UIWebView uses to load a local HTML file Does. The file is called "Newton's second law. Html" for example, but due to that epostrophe, the file will not be loaded. I have tried to take Apostrophy after that. So my question is how can I load a local url with apostrophy? Is there a key to escape that I can use? I loaded the file from this line:
Failpath is the full path to the file
[_ webView loadRequest: [NSURLRequest requestWithURL: [NSURL fileURLWithPath: filePath]]] ;
< code> NSURL * url = [NSURL URLWithString: @ "/ path / to / your / file / newton \ 's.html"];
Comments
Post a Comment