[self performSelectorOnMainThread:@selector(customFoo:) withObject:obj waitUntilDone:YES];
and
[self customFoo:obj];
As I know, if second one is invoked on the main thread, there isn’t any difference between two of them… is it right?
What are the basic differences between two of them ?
The run-time behaviours are the same. But when compiling the code there is a difference: The second will only compile if the method
customFoo:is defined.