asynchronous method executing

Posted by alexeyndru on Stack Overflow See other posts from Stack Overflow or by alexeyndru
Published on 2010-05-10T10:23:22Z Indexed on 2010/05/11 7:54 UTC
Read the original article Hit count: 226

Filed under:
|
|

I have a delegate method with the following tasks:

  • get something from the internet (ex: some image from a web site);
  • process that image in a certain way;
  • display the result in a subview ;

getting the image takes some time, depending on the network's speed so the result of its processing is displayed in the subview after that little while.

my problem: during the time between getting the image and showing the result the device looks unresponsive. any attempt to put some spinner, or any other method which is called inside this main procedure has no effect until the result is processed. how should I change this behaviour? I would like to put a big spinner during that waiting time.

thank you.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone