Drop interaction delagate for uiwebview : ios11 -


//drop delegate func dropinteraction(_ interaction: uidropinteraction, canhandle  session: uidropsession) -> bool {     return session.canloadobjects(ofclass: nsstring.self) } func dropinteraction(_ interaction: uidropinteraction, sessiondidupdate session: uidropsession) -> uidropproposal {     return uidropproposal(operation: .copy) } func dropinteraction(_ interaction: uidropinteraction, performdrop session: uidropsession) {     session.loadobjects(ofclass: nsstring.self) { imageitems in         let images = imageitems as! [nsstring]         //self.imageview.text = images.first string?         //let string="<html><body> \(images.first!)  </body></html>"         self.imageview.loadhtmlstring(images.first! string, baseurl: nil)     } } 

here tried text string safari , trying put in uiwebview...but nt working...need in advance...please suggest tutorials ios 11 features


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -