Low priority task

I have an application that requires execution of a relatively slow task (15-30 seconds) after launch (import into master data). I am looking for a good way to accomplish a task without making the interface seem ordinary or frozen. I tried:

  • Splitting imports into short operations and adding them to the main NSOperationQueue
  • Importing using performselectorinbackgroundto speed up the process

However, none of them led to significant improvement. Any ideas?

+3
source share
2 answers

Combining the import into short operations and adding them to the main NSOperationQueue

[my emphasis]

, . , concurrency 1, .

, iDevices ​​, , , .

+3

, . performSelectorInBackground [NSThread detachThreadSelector:. , , . , , .

+1

All Articles