Grand Central Dispatch (GCD) vs. performSelector - need a better explanation
问题 I\'ve used both GCD and performSelectorOnMainThread:waitUntilDone in my apps, and tend to think of them as interchangeable--that is, performSelectorOnMainThread:waitUntilDone is an Obj-C wrapper to the GCD C syntax. I\'ve been thinking of these two commands as equivalent: dispatch_sync(dispatch_get_main_queue(), ^{ [self doit:YES]; }); [self performSelectorOnMainThread:@selector(doit:) withObject:YES waitUntilDone:YES]; Am I incorrect? That is, is there a difference of the performSelector*