【发布时间】:2015-01-23 01:13:57
【问题描述】:
%hook FirstClass
[self method2];
%orig
%end
但method2 只能用于不同的班级
在这种情况下我怎么称呼它?
到目前为止我所知道的:
- 使用 NotificationCenter 通知第二类加载
method2 - 与使用
%c有点相关,但不熟悉完整的解释
但是这太复杂了,有没有其他方法可以做到这一点
-- 更新
我试过 %c 但我得到了这个错误
Tweak.xm:86:48: error: class method '+class' not found (return type
defaults to 'id') [-Werror,-Wobjc-method-access]
^~~~~~~~~~~~~~~~~~
在这里应用的解决方案> THEOS: compiling error when calling method in other class (logos)
但似乎不起作用
【问题讨论】:
-
嗨。你能再解释一下吗?您将使用哪些类?请在更新中写下您正在谈论的代码。
标签: ios objective-c jailbreak theos