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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -