I'm using a meta viewport as mentioned here Why does UIWebView shrink images? for UIWebView. This formats portrait fine and I don't have to compensate for weird scaling. However, once rotated to landscape, I can't take advantage of the additional width. Meaning, I'd like to fit more text into a single line for landscape. Everything keeps scaled at 1.0. Is there a way to change viewport to .75 scaling on rotation and back to 1.0 in portrait?
Iphone – UIWebview landscape formatting with viewport
cocoa-touchiphoneuiwebview
Best Answer
I wrote this function to set the viewport width as a UIWebView is resized. You can easily adapt it to set a viewport property other than width.