multithreading - How can I SIMPLY perform two tasks at once in my iPhone app? (threading?) -
status:
Now in my app I start downloading data from my server Give it Before the download starts, I want to update UILabel to say "now downloading" ...
Problem:
It seems The download takes care of all the computers, and the UILBL is never updated until the very end (the download has already ended) and then empty (or, in real time, ever Is not even visible) is set back.
Question:
How to tell your UILB to "download now" before I download Can I update?
label.text = @ "download"; NSOperationQueue * operationQueue = [[NSOperationQueue] alloc] init]; NSINOption Operation * Operation = [[NSINOnocation Operation Alok] Initvith Target: Self Selector: @Selector (Download) Object: @ "http://www.google.com"]; [OperationQuality: Operation]; [Operation Release]; - (Zero) Download: Download (NSString *) url [Self Performance ChoicesManetred: @Selector (The Finger Download) Object: Waiting Without Waiting: No]; } - (zero) did FinishDownload {label.text = @ ""; }
Comments
Post a Comment