开发者

UIWebView load content On demand

开发者 https://www.devze.com 2023-01-09 02:50 出处:网络
I have huge amount of data which load on UIWebView. So there has some issues 1. It\'s take lot of time on loading

I have huge amount of data which load on UIWebView. So there has some issues

1. It's take lot of time on loading

2. On iPhone-OS3 it shows little chunk but In 开发者_JS百科iPhone-OS4 it doesn't

3. On orientation it takes much time.

So any suggestion? how can I load content On Demand Need?


You may need to use NSURLConnection connectionWithRequest: instead of [webView loadRequest:]. Then implement connection:didReceiveData: to accumulate the data received and connectionDidFinishLoading: inform the user there is no more data to be loaded.

0

精彩评论

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