How to use APIs both loadFileUrl:allowingReadAccessTo: and loadHTMLString:baseURL:?

I need to load both the local source images and remote source images in WKWebView. The url of remote images is a relative url.

To load the local images in WebView, I could use loadFileURL(:allowingReadAccessTo:). To load the remote images in WebView, I could use loadHTMLString(:baseURL:).

But, I need both the local images and remote images. How can I do?

How to use APIs both loadFileUrl:allowingReadAccessTo: and loadHTMLString:baseURL:?
 
 
Q