익명 기능을 NSThread::detachNewThreadSelector
를 사용하려고 목적C NSThread와 익명 함수가
void (^testA)(void) =^
{
NSAutoreleasePool *oPool = [[NSAutoreleasePool alloc] init];
NSLog(@"in threadA",nil);
[oPool release];
};
[NSThread detachNewThreadSelector:@selector(testA) toTarget:testA withObject:nil];
내가 가지고 오류 :
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSThread initWithTarget:selector:object:]: target does not implement selector (*** -[__NSGlobalBlock__ testA])'
사람이 나에게 그와 손을 줄 수 ?