简体   繁体   中英

UIWebView scalesPageToFit property, what is it actually doing?

UIWebView has a property called scalesPageToFit , which can be set to YES or NO .

I was wondering if anyone had an explanation as to what it actually does with regards to how it works. What criteria is it looking at when it scales the page? Is it looking for the widest table or div and then zooming out to fit that?

Thanks

  • So far to my knowledge when you set scalesPageToFit to YES it will show the content within the Webview space.
  • Then you can zoom out to see the content according to the users capability of reading.
  • I have done this a few times for pdf file, so it will show the pdf content within the content width. Actually it will scale it proportionally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM