objective c - Passing Progress Bar Information to the View Controller -


I have a class that handles downloads and provides progress information.

  - (zero) connection: (NSURLConnection *) connection was the receipt data: (NSData *) data {[Data data received: data]; Self.recievedlength = self.recievedlength + [data length]; // calculation of progress self.progress = 0; Self.progress = ((float) received / [filesize floatValue]); // NSLog (@ "% f", auto.progress); [Self display selectorMythrthread: @Selector (Passprogress) with object: not waiting until: no];   

I have the following selector, which gives the float's progress information int form in the same class:

  • (float) pass progress {/ NSLog (@ "% F", self.progress); Return self Progress; }

    My question is, how can I update the UIProgressView (progress bar) in the menu widgetor. The following does not work NSLog (@ "Progress% F", [Class Eases Pass Progress]);

    Any thoughts please do not want to write the download code in the main code controller.

    Write a protocol in your main control controller in your main view controller To adopt

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -