1

I am creating one book reader Application. In my application I am loading the pages as images from Web URL.When loading each images I like to show the loading percentage likeenter image description here below

Please suggest me some ideas

btmanikandan
  • 1,923
  • 2
  • 25
  • 45

3 Answers3

2

I've made an open source progress view that is pretty customizable, and will be even more so in its upcoming 2.0 release. You can find it at lightdesign/LDProgressView. Please let me know if it suits your needs or how it might be changed to do so.

Christian Di Lorenzo
  • 3,562
  • 24
  • 33
1

Take a look at NSURLConnectionDataDelegate (protocol of NSURLConnection). https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDataDelegate_protocol/Reference/Reference.html#//apple_ref/occ/intf/NSURLConnectionDataDelegate

You need to implement the following method:

(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite

In order to support this kind of behaviour.

Avi Tsadok
  • 1,843
  • 13
  • 19