“Weak, Strong, Unowned, Oh My!” – A Guide to References in Swift

I often find myself worrying about retain cycles in my code. I feel like
this is a common concern amongst others as well. I don’t know about you,
but it seems like I am constantly hearing  “When am I supposed to use weak?
And what the hell is this ‘unowned’ crap?!” The issue we find is that we
know to use strong, weak, and unowned specifiers in our swift code to avoid
retain cycles, but we don’t quite know which specifier to use. Fortunately,
I happen to know what they are AND when to use them! I hope this guide
helps you to learn when and where to use them on your own.

Sourced through Scoop.it from: krakendev.io

See on Scoop.itiPhone and iPad Development

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s