ios - making 300x300 webview scale 200x200 image -


i trying display images in uiwebview. image sizes 200x200. want make them scale , fill in 300x300 webview.

i tried aspect modes not seem work.

even webview.scalespagetofit = yes; doesnt work. missing obvious?

you can following:

webview.contentmode = uiviewcontentmodescaleaspectfit; or webview.contentmode = uiviewcontentmoderedraw; 

not on mac cannot test, should work. update soon

also set, webview.autoresizessubviews = yes;

edit:- found solution use html scale image, have question


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -