Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Memory Management in Swift.pdf

Memory Management in Swift.pdf

Talk about the basics of memory management in Swift and iOS. Presented at NSBrazil, 2019.

André Gimenez Faria

November 09, 2019
Tweet

Other Decks in Programming

Transcript

  1. ARC

  2. A B

  3. 2

  4. 2

  5. 3

  6. 3

  7. 5

  8. 5

  9. TLDR Referências fortes para reter uma variável Structs - value

    type Classes - reference type Retain cycle: duas referências fortes apontando entre si Closures “capturam fortemente” o que utilizam