3254523
3254523

Reputation: 3026

how to call a method after dispatch_after_seconds completes?

I'm looking to call a method after dispatch_after_seconds completes.

dispatch_after_seconds(0.1, ^{
   [self doTask];
}

how can i call a method so that it is executed after this is finished?

Upvotes: 0

Views: 37

Answers (1)

Joride
Joride

Reputation: 3763

dispatch_after_seconds(0.1, ^{
    [self doTask];
    [self doYourTask];
 }

Upvotes: 3

Related Questions