paint-brush
Swift: Avoiding Memory Leaks by Examplesby@BarekJaafar
10,548 reads
10,548 reads

Swift: Avoiding Memory Leaks by Examples

by Jaafar Barek3mJanuary 23rd, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In Swift Automatic Reference Counting (ARC) is used to manage memory usage in an iOS application.<br>Each time you create a new instance of a class ARC allocates a chunk of memory to store information about it, and automatically frees this memory when that instance is no longer in need.<br>You as a developer don’t need to do anything for that management&nbsp;, except for 3 cases were you need to tell ARC more information about relations between instances to avoid “Retain Cycles”.

Company Mentioned

Mention Thumbnail
featured image - Swift: Avoiding Memory Leaks by Examples
Jaafar Barek HackerNoon profile picture
Jaafar Barek

Jaafar Barek

@BarekJaafar

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite