I have a app with a website. On the website there are links to other sites and pages of the website but how can I reload the page with a button or a tabbar that it goes back to the main page from the webview
You can simply create two button, one to goes back and one to refresh and then connect these IBActions
:
@IBAction func doRefresh(AnyObject) {
webView.reload()
}
@IBAction func goBack(AnyObject) {
webView.goBack()
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With