I'm trying to use a method from a class I downloaded somewhere. The method executes in the background while program execution continues. I do not want to allow program execution to continue until this method finishes. How do I do that?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How to let a thread communicate with another activ
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Difference between Thread#run and Thread#wakeup?
- Java/Spring MVC: provide request context to child
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Threading in C# , value types and reference types
My technique is to check if the task can run (if the background thread is finished), and if it can't run then I use GCD to try again after a delay: