ARC circular retain detection

后端 未结 3 876
Happy的楠姐
Happy的楠姐 2020-12-28 21:59

I ported some old code over to Objective-C ARC (Automatic Reference Counting) and it seems to work great. Except a rather large, high-level object is not being deallocated

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 22:27

    The best way is usually to use the Leaks instrument in the Instruments app.

    The What's New In Instruments video from WWDC 2011 discusses using Instruments to find retain cycles under ARC, starting about 38 minutes in.

提交回复
热议问题