Kodeco Forums

Intermediate Swift 2 Part 8: Instance Lifecycle

Learn about the instance life cycle including memory management, initializers, and the steps Swift takes to build and destroy object instances.

This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4190-intermediate-swift-2/lessons/9

Best explanation of reference counting and retain cycles I have seen anywhere.

1 Like

The challenge solution is missing from this page

This was the best explanation of reference counting I’ve ever read/watched.

But I’m not sure why it doesn’t work in Swift 3 when you add “weak” to the friend property of the class. I opened the playground in Xcode Beta 5, but it shows an EXC_BAD_ACCESS error at the “andrea.friend = christine” line.

Has something changed?