<p>How would I expose an <em>Objective-C</em> method within JavaScript when using the <em>iPhone SDK</em> when using the <code>UIWebView</code>?</p>

<p>Any help would be appreciated!</p>

The best way to do this would be through a custom link, and then use the UIWebView delegate method
```
-webView:shouldStartLoadWithRequest:navigationType:
```
to trap requests. When you see a request come through with your link in it, you know your action has been triggered.