I have a UIWebView set up to launch any clicked links in Safari. I know the code to make a UIAlert but i cant find a way to implement it here. Basically I want to click on a link. It loads nothing. Asks you if you want to go to Safari. If you click OK it does... If you click cancel, it does nothing... Heres my code: Any ideas? Thanks!
- (BOOL)webView

UIWebView *)webView shouldStartLoadWithRequest

NSURLRequest *)request navigationType

UIWebViewNavigationType)navigation Type;
{
NSURL *loadURL = [ [ request URL ] retain ]; // retain the loadURL for use
if ( ( [ [ loadURL scheme ] isEqualToString: @"http" ] || [ [ loadURL scheme ] isEqualToString: @"https" ] ) && ( navigationType == UIWebViewNavigationTypeLinkClicked ) )
return ![ [ UIApplication sharedApplication ] openURL: [ loadURL autorelease ] ];
[ loadURL release ];
return YES; // URL is not http/https and should open in UIWebView
}