开发者

How to make the UIWebView scroll smooth?

In my application ,I us开发者_如何学编程e the UIWebView to load a website's content,such is "http://www.apple.com",but i sroll the webview is not smooth, how can i to makt it more smooth ?


There isn’t a magic wand here, but there are some things you can do to make it smoother:

  • Use less memory. The more free memory, the better scrolling performance. Free what you can before displaying the web view. Also, be sure to implement -didReceiveMemoryWarning in your UIViewController subclasses, as well as in your application delegate. The Memory Management Programming Guide can help.

  • Don’t take advantage of the fact that UIWebView conforms to the UIScrollViewDelegate protocol. You may be tempted to monitor its scrolling activity, but everything you do will impact performance.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜