一.檢測內存用到的方法
1. 使用系統(tǒng)的僵尸指針檢測方式 ? product->scheme->edit scheme->run->diagnostics->zombie objects
? ? ? ??

1.檢測內存泄露用到的方法(CF CG的類需要手動釋放)
????1.靜態(tài)檢測方法(手動,自動) ??
????????????1.手動系統(tǒng)的靜態(tài)分析工具 ?product->Analyse
? ? ? ? ? ? ?2.自動靜態(tài)分析工具 ?build setting -> analyze during 'build' ->YES?

? ? ? ? ? ? ??
????2.動態(tài)檢測方法(instrument,第三方內存檢測工具MLeaksFinder)
? ? ? ? ? ??MLeaksFinder原理 通過runtime交換VC的viewWillAppear ,viewWilldisAppear ?監(jiān)聽VC被pop的時候,有沒有被delloc,如果走了dissAppear,但是沒走delloc就說明內存泄露了