UIWebView loading image using a callback

久未见 提交于 2019-12-25 03:04:31

问题


I would like to know how to request images using some type of callback feature while requesting html pages from my server for my UIWebView. Currently I have no idea how a UIWebView downloads the image thats on a webpage, dose it use a callback? can it receive embedded image data etc, I am hoping someone can please explain the options open to me.

I have looked all through apple docs URLConnection, NSURLConnection, UIWebView etc and there is no explanations on the different ways UIWebView load images, so I am hoping someone can help explain to me the different ways a UIWebView can request the images for display and what I should look out for on my server end to make things easier.

So the reason for this question is that I need to decide on how best to store the images on my server or other things like is it better to embed the images in the html response, are callbacks support etc etc..

any help would be appreciated.


回答1:


It's just load images. No callbacks, delegates, notifications or smth. If your image is reachable via browser, it'll be downloaded and presented by UIWebView.



来源:https://stackoverflow.com/questions/12255923/uiwebview-loading-image-using-a-callback

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!