iOS Singletons and Memory Management

后端 未结 2 1528
清酒与你
清酒与你 2021-02-03 12:27

I\'m certain that I\'m missing some fundamental understanding of iOS memory management and, despite lots of reading and searching, I\'m still not getting it.

I use a sin

2条回答
  •  时光取名叫无心
    2021-02-03 13:16

    Don't use singletons. Your current problem is caused by a simple memory management misconception, but the singleton pattern will only give you more headache in the long run.

提交回复
热议问题