Reputation: 18513
I need to load a web page from an independent website in my iOS app, however, the webpage is not optimized for mobile experience. I want to execute some js to re-layout the page after it is loaded.
Upvotes: 0
Views: 220
Reputation: 8649
The most basic way to inject your JS is using the following UIWebView method
- (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script
Upvotes: 1