Skip to content

Commit d277b26

Browse files
author
dev-aozhimin
committed
[Update] Update page render time
1 parent 8e3b8ad commit d277b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ void +[_priv_NBSUIAgent hookSubOfController](void * self, void * _cmd) {
8888
}
8989
```
9090

91-
`_subMetaClassNamesInMainBundle_c` 的命名和传入的 "UIViewController" 参数,基本可以推断这个 C 函数是获取 MainBundle 中所有 `UIViewController` 的子类。
91+
`_subMetaClassNamesInMainBundle_c` 的命名和传入的 "UIViewController" 参数,基本可以推断这个 C 函数是获取 MainBundle 中所有 `UIViewController` 的子类。而事实上,如果通过 LLDB 在这个函数 Call 完之后的那行汇编代码下断点,会发现返回的确实是 `UIViewController` 子类的数组。下面的 `if` 语句判断 `r12` 寄存器不为 `nil` 并且 `r12` 寄存器的 `count` 不等于0才执行 `if` 里面的逻辑,而 `r12` 寄存器存放的正是 `_subMetaClassNamesInMainBundle_c` 函数的返回值,也就是 `UIViewController` 子类的数组。

0 commit comments

Comments
 (0)