用xcode自动检测内存泄露

来源:互联网 发布:网络编程有什么用 编辑:程序博客网 时间:2024/05/16 10:15

在project setting 中找到Run Static Analyzer 键,然后把值修改为YES这样重新build你的程序就会看到内存泄露了.

在xcode升级到5.0以后需要选择Product-->Analyze  即可看到内存泄露的检测效果。