Difference between content in uiwebview and mobile safari?

I am showing a twitter feed in uiwebview ... however there is a problem: it looks significantly different in uiwebview than what it does in mobile safari. Ultimately, I prefer the look and feel of the feed as seen in mobile safari. Is there a way to "trick" the web view into displaying itself as a safari? Perhaps by changing the user agent? Thank.

+3


source to share


2 answers


Finished changing the user agent. The app made it better than an apple.



0


source


UIWeView

and Safari doesn't render all pages the same. There may be minor formatting differences UIWebView

that will not be found in Safari ..

The solution to this is to use javascript

to modify the WebView directly programmatically to display everything correctly.



More info avaialble in Class reference UIWebView doc here

-1


source







All Articles