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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -