2014-10-27 88 views
0

我试图实现使用THEOS这个调整是呼吁负载
另一种观点,但我不断收到此错误时,编译错误,当我编译:
Tweak.xm:13:57: error: class method '+onLeftMenu' not found (return type defaults to 'id') [-Werror,-Wobjc-method-access] [_logos_static_class_lookup$FoxTubeViewController() onLeftMenu];THEOS:调用其他类(徽标)方法

我的代码Tweak.xm文件:
%hook MainViewController - (void)viewDidLoad{ %orig; [%c(LeftMenu) onCachedVideo]; } %end

回答

0

如果你需要使用%C,你应该

#import "LeftMenu.h" 

,如果你不希望 可以从运行 使用

#import <objc/runtime.h> 

叫它然后调用它像

[objc_getClass("LeftMenu") onCachedVideo]; 

好运