Skip to content

Commit d39a617

Browse files
authored
Create README-CN.md
1 parent d532e3a commit d39a617

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README-CN.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# FAQ
2+
**1) 引进 MLeaksFinder 后没生效?**
3+
4+
* 先验证引进是否正确,在 UIViewController+MemoryLeak.m 的 `+ (void)load` 方法里加断点,看 app 启动时有没有进入。
5+
6+
**2) 可以手动引进 MLeaksFinder 吗?**
7+
8+
* 直接把 MLeaksFinder 的代码放到项目里即生效。如果把 MLeaksFinder 做为子工程,需要在主工程的 Build Settings -> Other Linker Flags 加上 `-ObjC`
9+
* 只是引进 MLeaksFinder 的代码 Retain Cycle 功能还未生效,可以再手动加入 FBRetainCycleDetector 代码,然后把 MLeaksFinder.h 里的 `//#define MEMORY_LEAKS_FINDER_RETAIN_CYCLE_ENABLED 1` 打开。
10+
11+
**3) Fail to find a retain cycle?**
12+
13+
* 内存泄漏不一定是循环引用造成的。
14+
* 有的循环引用 FBRetainCycleDetector 不一定能找出。
15+
16+
**4) 如何关掉 MLeaksFinder?**
17+
18+
* 把 MLeaksFinder.h 里的 `//#define MEMORY_LEAKS_FINDER_ENABLED 0` 找开。

0 commit comments

Comments
 (0)