开发者

How to redisplay a page in iPhone UIWebView

开发者 https://www.devze.com 2023-01-04 10:00 出处:网络
I\'ve got a UIWebView which starts off with the scalesPagesToFit property set to YES. This loads up the page and scales it fine. When the user taps a button I want to turn off the scaling and show the

I've got a UIWebView which starts off with the scalesPagesToFit property set to YES. This loads up the page and scales it fine. When the user taps a button I want to turn off the scaling and show the page full size but I'm struggling to figure out how to force the page to redraw. I specifically do not want to refresh the page (ie fetch it from the server again) just redraw the page that has already been downloaded. I've tried setN开发者_Python百科eedsLayout and setNeedsDisplay but neither of these work

0

精彩评论

暂无评论...
验证码 换一张
取 消