Loading...Please wait for UIWebView - iPhone

Posted by niha7229 on Stack Overflow See other posts from Stack Overflow or by niha7229
Published on 2010-05-28T04:05:37Z Indexed on 2010/05/28 4:11 UTC
Read the original article Hit count: 301

Hi guys,

In Safari and other browsers, there is a bar that would indicate the percentage of the loading progress, and I, myself, trying to implement something similiar on iPhone, when loading some content in UIWebView, I would like the app to indicate the percentage of the page being loaded.

I tried some google search and realize we could use NSURLConnection to read only the header and get the Content-Length ( but don't know how to, I read the Apple's NSURLConnection docs but probably I missed something ... ). And the size ( kb ) which UIWebView had loaded, seem like UIWebView don't support it for the public API... I hope this would be complete in some other ways than I thought, so if you have any ideas, please throw it out, thanks for your patient reading.

P.S : I could just show an Activities Indicator for users with the long loading progress actions of the UIWebView but I just want to go further with the loading percentage bar :).

Regards.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-web