iphone - Update ULabel immediately while downloading files -


I am using NSURL connection to download files. I have a UILB in my view, in which to display currently downloadable files. UILabel is updating and finally updating Let's download 10 files. I am able to set the label text after starting the download and after completing the download.

I can understand that the method I'm trying to call is not running in the main thread, so I've used the following code to run it in the main thread,

  [_ myHome display selector main andthread: @Selector (with update label) Object: Zero WaitingTone: Yes];   

more method

  - (zero) updateLabel {_fileName.text = [NSString stringWithFormat: @ "% @", filename]; }   

This is not working either. Am I doing anything wrong here?

Can anyone tell me how to update the label immediately ??

Solution: I used the NSNation Center to send notifications to other sections, I will try to execute, but along with the selector, also that both the updated progress, the performers, the selectors, are doing anything in the same class.

Why this work was not done for any reason, it is most welcome

Comments