Pruebe lo siguiente:
// Run in the background, on the default priority queue
dispatch_async(dispatch_get_global_queue(0, 0), ^{
[self performSelector:(SEL) withObject:(id) afterDelay:(NSTimeInterval)]
});
Código no probado
Tenga en cuenta que el selector/método no debe utilizar las propiedades UIKit (así que no actualizar la interfaz de usuario) o el acceso UIKit (como marco) por lo tanto, es posible que su selector deba iniciar el trabajo de regreso al hilo principal. p.ej.
(id)SomeMethod:UsingParams: {
// Do some work but the results
// Run in the background, on the main queue
dispatch_async(dispatch_get_main_queue(), ^{
// Do something UIKit related
});
}
el problema es que cuando '[libre performSelector: (SEL) withObject: (id) afterDelay: (NSTimeInterval)]' se usa solo en un subproceso de fondo, no se está ejecutando –