Per altre informazioni scrivi a fabriziocaldarelli@negusweb.it
Thread con blocchi in iOS
Da Programmazione Software.
Versione del 24 apr 2014 alle 10:43 di Fabrizio Caldarelli (Discussione | contributi) (Creata pagina con "Traccia di codice per aggiungere codice ad una coda in background e alla coda nel thread principale: <source lang="objc"> dispatch_async( dispatch_get_global_queue(DISPATCH_Q...")
Traccia di codice per aggiungere codice ad una coda in background e alla coda nel thread principale:
dispatch_async( dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ // Add code here to do background processing // // dispatch_async( dispatch_get_main_queue(), ^{ // Add code here to update the UI/send notifications based on the // results of the background processing }); });