【发布时间】:2013-02-07 07:34:01
【问题描述】:
我想通过 NSThread 将两个参数传递给方法。我尝试使用this third answer。但不幸的是,代码运行不佳,因为andKeys:
方法不可用。
[NSThread detachNewThreadSelector:@selector(DownloadCheckServerPath:DirectoryName:) toTarget:self withObject:"How to pass two objects"];
那么我应该如何通过NSThread在Sector中调用-(void)DownloadCheckServerPath:(NSString *)serverPath DirectoryName:(NSString *)directoryName这个方法。 ?
【问题讨论】:
标签: ios objective-c nsthread