2012-01-23 4 views

Respuesta

13

AFURLConnectionOperation envía notificaciones cuando las operaciones comienzan y terminan. Puede conectarse fácilmente al escuchar las solicitudes para las notificaciones y el registro del objeto de notificación:

[[NSNotificationCenter defaultCenter] addObserverForName:AFNetworkingOperationDidStartNotification 
                object:nil 
                queue:nil 
               usingBlock:^(NSNotification *note) { 
               NSLog(@"Operation Started: %@", [note object]); 
               }]; 

combinan con FormatterKit 's TTTURLRequestFormatter para obtener los mejores resultados!

+0

¡Ah! Nunca pensé en buscar NSNotification. Gracias @mattt y gracias por el marco :-) – Damien

Cuestiones relacionadas