iOS 8 WKWebView: display local plain text like iOS 9? -


i'm attempting view local log file using wkwebview, due it's higher performance , asynchronous loading vs. uitextview. on ios 9, loadfileurl(_:allowingreadaccesstourl:) works load plain text file , display it. renders monospaced font (i wish set menlo though). however, on ios 8, local file urls can't loaded can load text file string , use loadhtmlstring(_:baseurl:) load view. works, text rendered, expected, if html. means there no line breaks or appropriate wrapping long lines. renders default font, not monospaced.

i'm guessing attempt load javascript loads styling, have no experience , i'm hesitant put effort what's debug log viewer.

so question is, how can render plain text plain text, local file, using wkwebview on ios 8?


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -