How to display images from Photo gallery on uiwebview ios swift? -
using photos api(phimagemanager) able list of photos url , photo object. when trying use url in webview , image not displaying
consider following image url got photos api(phimagemanager)
you have take burl in string , load string in webview in viewdidload
like
urlstr = obj["url"] as! string
and load url in uiwebview
webview.loadrequest(nsurlrequest(url: nsurl(string: urlstr)!))
Comments
Post a Comment