title: iOS 5 and iOS 6 - UIWebView difference in behaviour
body: <p>I am testing some HTML code on <code>UIWebView</code>.  And am also wishing to support both iOS 5.x and iOS 6.x.  But there seems to be a problem about font size associated with iOS 6.x only. </p>
  
  <p>That is, under rotation, iOS 5.x would make fonts slightly smaller when changing to portrait from landscape mode (which is desirable, since portrait's width is shorter).  However, <code>UIWebView</code> in iOS 6.x would do just the opposite.  </p>
  
  <p>The problem does not come up when the same HTML code is rendered in iOS Safari (both 5.x and 6.x), as font size always scales as expected during rotation.</p>
  
  <p>It could be something I've missed about <code>UIWebView</code>, hope somebody knowledgable could help to explain this. </p>
  
  <p>Also, the above problem comes up on my iPhone 5 iOS 6.1 test device. Please comment if you do or don't find any similar problem. Wish to know if it is only associated with this particular phone (or its settings) only.</p>
  
  <p><strong>Latest Update :</strong></p>
  
  <p>The above problem should be related to how the project (which started long before iOS 6 was available) is laid out.  As have set up a new test project with a <code>UIWebView</code> and a <code>UIView</code> in some different basic setups, and the text autosizing during rotation seems to be ok in both ios 5 &amp; 6. The above problem may be due to custom layout adjustment code used which is good only in iOS 5. Really wish there were more compatibility between the 2 ios versions.</p>