I have code like this
- (IBAction)onClick:(id)sender {
NSThread *thread = [[NSThread alloc]initWithTarget:parser selector:@selector(adapter:) object:ph];
[thread start];
}
How can I do something (show log or smth) after thread executed selector i passed?
Unfortunately, there is no easy answer to this question without the use of GCD (which is an iOS 4.x feature that you may not be able to support), so use
NSNotificationCenterand latch into the notification when the method is done.