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
Post a Comment