I want to display a UIProgressbar based on the amount of data downloaded from the server.
The only way I have implemented is that I have created an NSURL connection and set a delegate - (zero) connection: (NSURLConnection *) Connection Response Response: (NSURLResponse *) Response I expected Contact
and - (in the zero) connection: (NSURLConnection *) connection was Resave data: (NSData *) Data is getting data part from each time partly until all the data is downloaded.
But it does not solve my problem.
Is there any other way to do this? <
Thank you
If you know the length of material expected, right now In total, the total amount is divided by:
// These properties should be the property of the class UIProgressView * progress view; long overdue; Saphar got long; - (Zero) Connection: (NSURLConnection *) Connection was the reception: (NSDT *) data {gotSoFar + = data.length; ProgressView.progress = gotSofar / Expected; }
If you receive type alerts on partition, then cast for each long time before partitioning.
No comments:
Post a Comment