1

I'm working on a project where I'm using webView and on site in webView have form where i can add file,

enter image description here

after need select what use, i select Photo library,

enter image description here

after controller will dismissed.

In Controller i use

  webView.loadRequest(NSURLRequest(URL: NSURL(string: ln)!))
Andrei Trotsko
  • 347
  • 2
  • 12
  • Possible duplicate of [Modal view closes when selecting an image in WkWebView iOS](https://stackoverflow.com/questions/37380333/modal-view-closes-when-selecting-an-image-in-wkwebview-ios) – LordParsley Apr 24 '18 at 14:45

1 Answers1

0
  1. Set Delegate to webview.

    webView.delegate = self

  2. Then after call delegate method of webview.

    func webViewDidFinishLoad(_ webView: UIWebView)

    Enter your code above method of choose file and select photo Library.

Jay
  • 686
  • 1
  • 4
  • 16