SlideShare a Scribd company logo
iOS Design Patterns:
Blocks
Introduzione teorica e casi d’utilizzo nel framework di
Veespo
Alessio Roberto
@alessioroberto
mail@alessioroberto.it
1
Definizione Apple
• Blocks are a language-level feature added to
C, Objective-C and C++, which allow you to
create distinct segments of code that can be
passed around to methods or functions as if
they were values.
2
Definizione Apple
• They also have the ability to capture values
from the enclosing scope, making them similar
to closures or lambdas in other programming
languages.
3
Grand Central
Dispatch
• Sfruttare al meglio lo sviluppo multi core,
semplificando la vita allo sviluppatore
• Esecuzione parallela a livello di thread e
gestione della concorrenza
• Creazione e gestione dei thread e della
sincronizzazione “invisibile” per lo
sviluppatore
4
Blocchi
5
Blocchi
6
Funzione asincrona
7
8
Funzione asincrona
9
Funzione di callback
10
Funzione di callback
11
Funzione di callback
12
Callback e chiarezza del
codice
13
github.com/darthpelo/ARNavBar
Callback
14
Funzioni asincrone
15
Grazie :-)
16
veespo.com
@VeespoDotCom

More Related Content

PPT
PDF
Javascript - 8 | WebMaster & WebDesigner
PPS
El desocupado
PPT
Interfaz De Power Point
PDF
Propedeutyka mikroblogingu
PPTX
Bloque de cierre
PPTX
Progressive Enhancement, and why it's important
PDF
Laboratorio Programmazione: Matrici, Stringhe e struct
Javascript - 8 | WebMaster & WebDesigner
El desocupado
Interfaz De Power Point
Propedeutyka mikroblogingu
Bloque de cierre
Progressive Enhancement, and why it's important
Laboratorio Programmazione: Matrici, Stringhe e struct

Similar to iOS design patterns: blocks (20)

PPTX
Introduzione a TypeScript
PDF
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
PDF
DotNetToscana - Sessione TypeScript
PDF
Visual COBOL - Conoscere Visual COBOL- Micro Focus
PPTX
ALM Revolutions - What's new in visual studio ALM 11
PDF
Kotlin hexagonal-architecture
PDF
Cloud & No-Coding: come fare su Azure?
PPTX
AngularJs, Bootstrap e Cordova: il connubio per app mobile cross-platform
PDF
Enabling DevOps for Machine Learning with Azure Pipelines
DOCX
Sviluppo di un prototipo di interfaccia per la verbalizzazione degli esami on...
PPTX
Fe04 angular js-101
PDF
Exploring VS Code
PPTX
Slide typescript - net campus
PPTX
TYPESCRIPT, ANGULAR E BOOTSTRAP ASSIEME PER APPLICAZIONI REAL WORLD
PPTX
Slide typescript - xe dotnet - Codemotion Rome 2015
PPTX
VS2013 what's new!!
PDF
Agile requirements - alla ricerca del filo rosso (iad 2013)
PDF
Delphi & Dintorni Webinar - Padroneggiare i principi SOLID con Delphi
PPTX
Tesi8
Introduzione a TypeScript
Back to the Future: Migrare da WebForm ad ASP.NET Core gradualmente
DotNetToscana - Sessione TypeScript
Visual COBOL - Conoscere Visual COBOL- Micro Focus
ALM Revolutions - What's new in visual studio ALM 11
Kotlin hexagonal-architecture
Cloud & No-Coding: come fare su Azure?
AngularJs, Bootstrap e Cordova: il connubio per app mobile cross-platform
Enabling DevOps for Machine Learning with Azure Pipelines
Sviluppo di un prototipo di interfaccia per la verbalizzazione degli esami on...
Fe04 angular js-101
Exploring VS Code
Slide typescript - net campus
TYPESCRIPT, ANGULAR E BOOTSTRAP ASSIEME PER APPLICAZIONI REAL WORLD
Slide typescript - xe dotnet - Codemotion Rome 2015
VS2013 what's new!!
Agile requirements - alla ricerca del filo rosso (iad 2013)
Delphi & Dintorni Webinar - Padroneggiare i principi SOLID con Delphi
Tesi8
Ad

More from Appsterdam Milan (18)

PDF
App Store Optimisation
PDF
iOS Accessibility
PPTX
Lean Startup in Action
PDF
Giocare con il fuoco: Firebase
PDF
Data visualization e fitness app!
PDF
iBeacon, il faro a bassa energia...
PDF
Facciamo delle slide migliori!
PDF
Fitness for developer
PDF
Follow the UX path
PDF
Dalla black box alla scatola nera
PDF
Java Search Engine Framework
PDF
Multithreading in Java
PDF
Data binding libera tutti!
PDF
Speech for Windows Phone 8
PDF
Web frameworks
PDF
Interfacciamento di iPhone ed iPad
PDF
Design patterns
PDF
Appsterdam Milan Winter Launch
App Store Optimisation
iOS Accessibility
Lean Startup in Action
Giocare con il fuoco: Firebase
Data visualization e fitness app!
iBeacon, il faro a bassa energia...
Facciamo delle slide migliori!
Fitness for developer
Follow the UX path
Dalla black box alla scatola nera
Java Search Engine Framework
Multithreading in Java
Data binding libera tutti!
Speech for Windows Phone 8
Web frameworks
Interfacciamento di iPhone ed iPad
Design patterns
Appsterdam Milan Winter Launch
Ad

iOS design patterns: blocks