How can we load our own html file into the UIWebView?
Apple's documentation suggests using loadHTMLString:baseURL:
:
Use the loadHTMLString:baseURL: method to begin loading local HTML files or the loadRequest: method to begin loading web content. Use the stopLoading method to stop loading, and the loading property to find out if a web view is in the process of loading.
The loadHTMLString:baseURL:
documentation offers further reasoning:
To help you avoid being vulnerable to security attacks, be sure to use this method to load local HTML files; don’t use loadRequest:.
This one might help: https://stackoverflow.com/a/29741277