I would like to perform a selector on the main thread from another thread, but the selector has multiple arguments, similar to this:
-(void) doSomethingWith:(int)
When you're using iOS >= 4, you'd do this instead:
dispatch_async(dispatch_get_main_queue(), ^{ [self doSomething:1 b:2 c:3 d:4 e:5]; });
That's like doing waitUntilDone:NO. If you want to wait until the method is finished, use dispatch_sync instead.
waitUntilDone:NO
dispatch_sync