I want to have a web view that loads a webpage. Webpage has few buttons and when you click a button from the web page it has to open a view-controller. Is this possible?
I bet you are gonna use UKWebView and yes its possible to communicate between your webview and website through evaluateJavaScript(). In this way one can easily communicate between their website and app:
webView.evaluateJavaScript("document.getElementById('someElement').innerText") { (result, error) in
if error != nil {
print(result)
}
}