今天浏览SBAppWindow.h头文件的时候看到了,记录以下
#import "SBWindow.h" @interface SBAppWindow : SBWindow // 继续追踪到父类SBWindow { } + (struct CGRect)constrainFrameToScreen:(struct CGRect)arg1; @end #import "UIWindow.h" @interface SBWindow : UIWindow { } - (void)setAlpha:(double)arg1; // 嘿嘿,这里好玩了~~~ @end
实验:
PiaoYuns-iPad:~ root# cycript -p SpringBoard cy# var keyWindow = [UIApp keyWindow ] #"<SBAppWindow: 0x12ee3e890; baseClass = UIWindow; frame = (0 0; 768 1024); opaque = NO; gestureRecognizers = <NSArray: 0x170643990>; layer = <UIWindowLayer: 0x17023d5c0>>" cy# [keyWindow setAlpha:0.5]
tweak编写--略~
发表评论