Last Updated: February 25, 2016
·
1.672K
· 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;"];