LoginSignup
7
7

More than 5 years have passed since last update.

iOS9でWebCore::FrameView::contentsSizeRespectingOverflowでクラッシュ

Last updated at Posted at 2015-09-25

iOS9にしてから、UIWebViewを使ったアプリで不可解なクラッシュを体験するようになりました。
WEBを表示しようとすると
WebCore::FrameView::contentsSizeRespectingOverflow
でクラッシュ。

試行錯誤して、どうやらviewportを指定していると「落ちるときがある」(常にじゃないのが困りもの)ということがわかりました。
しかし、viewportを指定しないという解決策はありえない……。

そこから、また思考錯誤して、以下のようにすると、クラッシュしなくなることがわかりました。

webView.suppressesIncrementalRendering = YES;

suppressesIncrementalRenderingをYESにすること。

なんとなく、OSというかWebViewのバグじゃないかなという気もするのですが……。

7
7
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7