Knowing where retain cycles are and removing them
If you are using Xcode 8 or above, you can use the memory graph thingy to see what object holds a reference to what object. To see the memory graph, first build and run your app with Xcode. When you want to check whether all the instances you created are discarded properly, go to this … Read more