title: Running JavaScript in a UIWebView before any other JavaScript is run
body: <p>I have a UIWebView component that is going to load a webpage which might contain JavaScript. I want to run some JavaScript of my own before any JavaScript on the loaded webpage runs. I know I can use <code>[myWebView stringByEvaulatingJavaScriptFromString:]</code> on the <code>webViewDidFinishLoad:</code> delegate of the <code>UIWebView</code>, however this will only run my JavaScript <em>after</em> the JavaScript on the webpage is run.</p>
  
  <p>Is the only solution to inject my JavaScript into the source code of the webpage? For example, I would put it immediately after the <code>&lt;head&gt;</code> tag to insure it is the first JavaScript that is run.</p>