2

I am using UIApplication.sharedApplication().openURL(url) to open a page in Safari.It is working fine , as far as opening the url in safari is concerned. But the problem is if that page is already opened in the safari and I call openURl method it just open that old page, not refreshing the content. I want to refresh it every time whenever I call opneURL . How to do that. ?

Aashish Nagar
  • 1,207
  • 1
  • 14
  • 30

1 Answers1

0

I don't think it possible to refresh a page in Safari.

You could try this:

func showTutorial(url : String) {
    if let url = NSURL(string: url) {
        let vc = SFSafariViewController(URL: url, entersReaderIfAvailable: true)
        presentViewController(vc, animated: true, completion: nil)
    }
}

Please also read this:

Refresh Safari page with openURL:?

Community
  • 1
  • 1
vbgd
  • 1,937
  • 1
  • 13
  • 18