w3iisg
Last Updated: February 25, 2016
·
1.427K
· jejacks0n
42daadccf24dfa8556aa4a5b1e6d4c26

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;"];

Say Thanks
Respond