How to pass a block as selector with param to performSelector:withObject:?
问题 Is it possible to create a block variable as selector accepting parameters, and to pass it to performSelector:withObject:? Currently, writing some tests and want to write a self contained method with all related checking. Need to pass a block, receive the param in it and do some checking in that block. I'm looking for something like: ... SEL blockAsSelector = ^{(NSString *param){NSLog(@"Passed param = %@", param);}} [self performSelector:blockAsSelector withObject