主要代碼:
檢測的原理:通過向nil 發(fā)送消息妄辩,觀察是否執(zhí)行惑灵。
demo:https://github.com/Xcode123456/Leaks
直接拖拽LeaksTool到工程即可,不需要導入頭文件。
參考文章:http://www.reibang.com/p/870318df8b47
主要代碼:
demo:https://github.com/Xcode123456/Leaks
直接拖拽LeaksTool到工程即可,不需要導入頭文件。
參考文章:http://www.reibang.com/p/870318df8b47