Last Updated: February 25, 2016
·
1.765K
· jejacks0n

UIWebView and requestAnimationFrame

In iOS6 it seems like requestAnimationFrame is defined, but not implemented (specifically in UIWebView -- works fine in Mobile Safari).

We added this as the fix in the webViewDidFinishLoad delegate method:
[webView stringByEvaluatingJavaScriptFromString:@"window.requestAnimationFrame = window.setTimeout;"];