dispatch_async UIWebView loadrequest

前端 未结 2 371
陌清茗
陌清茗 2021-01-26 07:24

I\'m loading a javascript which is in my App, the script will try to find a solution, which can takes some time. I don\'t want to wait more than 5 seconds for that solution, in

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-26 08:02

    Ok guys, I created a Worker in my Javascript code, so I can handle it like new threads but not in iOS (which was impossible to do using UIWebView). The solution is here: iOS Javascript Workers High CPU after terminate()

提交回复
热议问题