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

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -