I have a problem with UIWebView
.
I keep getting the following when the UIWebView
expands to full screen:
This application changes the autorun mechanism from the background thread, which can lead to engine damage and strange crashes. This will result in an exception in a future version.
Here is my simple code and the only code I have:
@IBOutlet var player: UIWebView! override func viewDidLoad() { super.viewDidLoad() let url = "http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8" let frame: Int = 10 let html = "<html><body><iframe src=\"\(url)\" width=395 height=290 frameborder=\(frame)></iframe></body></html>" player.loadHTMLString(html as String, baseURL: nil) }
I tried the solution from the following question, which did nothing:
I tried another solution:
- iOS9 - this application changes the autorun mechanism from the background thread - where?
Adding PSPDFUIKitMainThreadGuard to the project did not help solve this problem.
As you can see, my code is VERY simple, unlike the other questions I found, and all of these solutions indicate that the user interface changes in the main thread that I added to the code to try to do, but I still got a warning .
There were many more questions that I found similar to mine, but they all point to the same solution, which does not work for me, so I did not list them.
Can anyone figure this out? You can try this simple code yourself and you will see the same problem.
thanks
source share