Ways to improve UIWebView scrolling performance?

前端 未结 3 1360
抹茶落季
抹茶落季 2021-02-01 07:54

I am building an application that includes a UIWebView containing a large number of images, CSS, embedded video, and JavaScript tap handlers. Scrolling performance

3条回答
  •  情话喂你
    2021-02-01 08:07

    This is the answer I got from Apple Developer Technical Support a while ago:

    At this time, we do not provide any mechanisms to optimize the rendering of UIWebView. The reason you see a difference is due to Mobile Safari and UIWebView not using the same rendering engine.

    The performance is dependent on the content loaded. If there are javascripts running or plugins being used, this can hinder the performance.

    I recommend that you file a bug report at http://developer.apple.com/bugreporter/ detailing your situation. This will also keep you informed on the status of your bug report.

    A possible alternative to UIWebView would be the open-source DTCoreText library: https://github.com/Cocoanetics/DTCoreText, which powers the Float Reader app: http://itunes.apple.com/us/app/float-reader/id447992005?mt=8

提交回复
热议问题