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

sql - VB.NET Operand type clash: date is incompatible with int error -

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

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -