Reformatting for landscape view
I am loading UIWebView from string in a navigation based app. I use this in my UIWebView title tag:
<meta name="viewport" content="width=320,height=420,user-scalable=yes,initial-scale=1.0">
I'm using a 1.0 viewport because the image dimensions don't need to be resized, which is not the viewport view. When the phone is facing the landscape, the width of the window is cropped a lot and I get a black void on the right side. I would like the view to fill the entire space of the landscape ... and for the text to fill, use that space, rather than wrap as much as it does in the portrait. Is there a way to get this type of formatting?
a source to share
You are using a scale of less than 1 for a 320-wide viewport, which is strange since the device has enough pixels to show the entire view. What exactly are you trying to get? Do you want the view to take up only part of the screen? Not sure if this will work with meta, you will need to resize the view itself.
Also, here's the syntax :
<meta name = "viewport" content = "width = 320,
initial-scale = 2.3, user-scalable = no">
Note that Apple uses commas while you are using semicolons.
If it is too big in the landscape and you use the landscape often, just make it smaller and sometimes enlarge it in the portrait :-)
a source to share