tags:

views:

61

answers:

2

Hi all, in my app im making use of UIWebView to load html page.When i change orientation from potrait to landscape mode content font changes it increases.If i tap on any of link the new request loaded in lanscape mode content font wont change.How to fix this.

A: 

Does the font size change because of automatic zooming? That's what happens in web browser, at least. Maybe you got same "feature" by default in UIWebView, too?

JOM
No there is no automatic zooming.I hvnt set any feature for UIWebView by default.
shilpa
A: 

You've probably already found the answer, but for posterity, see: http://stackoverflow.com/questions/2710764/preserve-html-font-size-when-iphone-orientation-changes-from-portrait-to-landscap

In a nutshell, it involves setting css style:

-webkit-text-size-adjust:none

Bruce Geerdes