1 theos/Logos常用命令 2 3 %hook 用的最多,意思是钩住一个类。 4 5 %hook SpringBoard 6 %end 7 8 %new (v@:) 新建方法 v是返回值@代表参数名 9 %new(v@:@i) 10 - (void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex; 11 12 %subclass:子类化一个类 13 如:%subclass Classname: Superclass <Protocol, Protocol> 14 15 %group:分组 16 如:%group Groupname 17 %end 18 19 %init:初始化分组和group相对应。 20 21 %ctor:构建一个初始化函数。 22 23 %log:打印系统日志,函数名参数值都能打印出来。 24 25 %orig:调用默认函数。
http://iphonedevwiki.net/index.php/Logos#.25init
http://brandontreb.com/beginning-jailbroken-ios-development-your-first-tweak
1 Extension Process order 2 .x will be processed by Logos, then preprocessed and compiled as objective-c. 3 .xm will be processed by Logos, then preprocessed and compiled as objective-c++. 4 .xi will be preprocessed as objective-c first, then Logos will process the result,
and then it will be compiled. 5 .xmi will be preprocessed as objective-c++ first, then Logos will process the result,
and then it will be compiled