我想將兩個參數傳遞給帶有NSThread的方法。我嘗試使用this third answer。但不幸的是,代碼運行不正常,因爲andKeys:
方法不可用。在目標c中傳遞帶有NSthread的扇區中的多個參數
[NSThread detachNewThreadSelector:@selector(DownloadCheckServerPath:DirectoryName:) toTarget:self withObject:"How to pass two objects"];
那麼我應該怎樣在扇區中通過NSThread調用-(void)DownloadCheckServerPath:(NSString *)serverPath DirectoryName:(NSString *)directoryName
這個方法。 ?
[此問題已被問及之前回答](http://stackoverflow.com/questions/8439052/ios-how-to-implement-a-performselector-with-multiple-arguments-and-with-afterd/8439084#8439084) –