views:

56

answers:

0

Hello All.

I have a UIWebView. Here is what I did:

  1. I give it a big size, let's say 600 * 400 (h * w), and load with a HTML string A, it shows a paragraph of text and a pic

  2. Then I changed the web view's frame (size) to 600 * 200 (h * w), load with another HTML string B, it is fine.

  3. Then I change the web view back to the original size, it can load the HTML string A, but it only shows the content that inside the width window of 200, the other right hand side content won't be shown.

It seems the frame width of WebView is changed back to 400, but the content still keep as 200. I can say this because I set the webview's background to red, so, in step 3, the left hand side half of the webview is the content, but the other right hand side is red

can someone help me out?

thanks