iOS design patterns: blocks
Upcoming SlideShare
Loading in...5
×
 

iOS design patterns: blocks

on

  • 600 views

 

Statistics

Views

Total Views
600
Views on SlideShare
595
Embed Views
5

Actions

Likes
2
Downloads
0
Comments
0

1 Embed 5

https://twitter.com 5

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    iOS design patterns: blocks iOS design patterns: blocks Presentation Transcript

    • iOS Design Patterns:BlocksIntroduzione teorica e casi d’utilizzo nel framework diVeespoAlessio Roberto@alessiorobertomail@alessioroberto.it1
    • Definizione Apple• Blocks are a language-level feature added toC, Objective-C and C++, which allow you tocreate distinct segments of code that can bepassed around to methods or functions as ifthey were values.2
    • Definizione Apple• They also have the ability to capture valuesfrom the enclosing scope, making them similarto closures or lambdas in other programminglanguages.3
    • Grand CentralDispatch• Sfruttare al meglio lo sviluppo multi core,semplificando la vita allo sviluppatore• Esecuzione parallela a livello di thread egestione della concorrenza• Creazione e gestione dei thread e dellasincronizzazione “invisibile” per losviluppatore4
    • Blocchi5
    • Blocchi6
    • Funzione asincrona7
    • 8
    • Funzione asincrona9
    • Funzione di callback10
    • Funzione di callback11
    • Funzione di callback12
    • Callback e chiarezza delcodice13github.com/darthpelo/ARNavBar
    • Callback14
    • Funzioni asincrone15
    • Grazie :-)16veespo.com@VeespoDotCom