Objective-c singleton memory deallocation

Do I have to somehow release the shared object (on which one singleton is based) when my application terminates if the garbage collector is not used (iPhone environment)?

+5
source share
2 answers

When the application exits, all its memory is freed. So it doesnโ€™t matter if you let go of objects at all, if you donโ€™t use too much memory while working.

Even when the strategy changes to 4.0, one small object will not have much impact; it will still be released along with the rest of the application when it is completed.

+12
source

Source: https://habr.com/ru/post/891520/


All Articles