I have a webview in my app. Whenver the user clicks on a link inside the webview, it opens the link inside the webview. I want it where the link gets opened in the safari app. This is an iOS app btw. Can you please help me do this? Here's the code:
import UIKit
class FirstViewController: UIViewController {
@IBOutlet var webView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
var URL = NSURL(string: "http:/
webView.loadRequest(NSURLRequest(url: URL! as URL) as URLRequest)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
/
}
}