जैसा कि मैंने ObjC के लिए बहुत नया हूँ मैं निम्न समस्या को अटक कर रहा हूँ:ऑब्जेक्टिव-सी धागा का उपयोग कर का कारण बनता है: लक्ष्य चयनकर्ता को लागू नहीं करता है
मैं एक समारोह है DownloadFile
-(void) downloadFile:(NSMutableArray*)paramArray withDict:(NSMutableDictionary*)options
{
//do stuff
}
मैं करना चाहते हैं एक सूत्र के रूप में इस शुरू करते हैं, और इसलिए मैं कोड की इस पंक्ति का उपयोग करें:
NSThread* dLoad = [[NSThread alloc] initWithTarget:self selector:@selector(downloadFile:) object:nil];
[dLoad start];
यह मुझे निम्न त्रुटि फेंकता है:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSThread initWithTarget:selector:object:]: target does not implement selector (*** -[LaunchDownload downloadFile:])'
मुझे यहां क्या याद आ रही है?