Has iOS 7 changed PNG compatibility/handling?

前端 未结 2 389
星月不相逢
星月不相逢 2020-12-21 03:22

I\'ve got an app that uses a UIWebView, and everything was (and still is) working perfectly on iOS 6. On iOS 7, though, it is sometimes kicking back an error <

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-21 03:34

    It is unlikely that the problem is the PNGs themselves. If it were, then it would fail every time. What is more likely is that you are corrupting the data, likely due to a race condition (since it is intermittent). For example, you may be executing WebKit calls somewhere other than the main thread. You may have gotten away with that on iOS 6, but on iOS 7 enough may have changed to cause the race condition to fail. If you process these PNGs outside of the UIWebView, you may have a race condition there. Those are the two main places I'd look.

提交回复
热议问题