Como soy bastante nuevo en ObjC estoy atascado con el problema siguiente:Objetivo-c usando hilo provoca: objetivo no implementa selector de
Tengo una función DownloadFile
-(void) downloadFile:(NSMutableArray*)paramArray withDict:(NSMutableDictionary*)options
{
//do stuff
}
quiero empezar esto como un hilo, y por lo tanto yo uso esta línea de código:
NSThread* dLoad = [[NSThread alloc] initWithTarget:self selector:@selector(downloadFile:) object:nil];
[dLoad start];
me arroja el siguiente error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSThread initWithTarget:selector:object:]: target does not implement selector (*** -[LaunchDownload downloadFile:])'
¿Qué me falta aquí?