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;"];
Written by Jeremy Jackson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Objective c
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#