UIWebView is a built-in browser for IOS. You can browse web pages and open documents such as html/htm pdf docx txt formats. The safari browser is made through UIWebView.
The server places the MIME identifier and other information into the transmitted data to tell the browser which plugin to use to read the relevant files.
uiwebview loads various local files (through loadData method):
There are three ways for UIWebView to load content:
1 Load local data file
Specify the MIMEType of the file
Use @"UTF-8" for encoding format
2 Load html string (all or part of html files can be loaded)
3 Load the NSURLRequest file (the first two steps are the same as NSURLConnect)
The above are the three ways to load local data in iOS development by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support for my website!