I have a UIWebView
which is set the URL like this:
let url = NSURL (string: "http://google.com");
let requestObj = NSURLRequest(URL: url!);
webView.loadRequest(requestObj);
However I'd like to be able to check if the user as pressed a link.
I tried something simple like this:
if (url != "http://google.com") {
println("Do Stuff");
}
which worked fine, however this only checks it in the viewDidLoad
I'd like to now every time a link is pressed or when the URL changes.