Logos中如何访问被Hook的类的成员变量

如题,见下图

logos里面self->报错

用CydiaSubstrate提供的MSHookIvar函数,

UIButton *_loginBtn = MSHookIvar<UIButton *>(self, "loginBtn");

:handshake:谢谢,版主。

后来我也找到答案了,用的的是KVC [object valueForKey:@“whatever”];

参考:http://stackoverflow.com/questions/11918934/theos-trying-to-take-over-uiview-subjectline-from-ckcontententryview-in-chatki