#import <UIKit/UIKit.h> @interface SBAppSwitcherController : UIViewController @end @interface SBDisplayLayout : NSObject @end %hook SBUIController - (void)appSwitcher:(SBAppSwitcherController *)arg1 wantsToActivateDisplayLayout:(SBDisplayLayout *)arg2 displayIDsToURLs:(NSDictionary *)arg3 displayIDsToActions:(NSDictionary *)arg4 { NSLog(@"[++++]inject wantsToActivateDisplayLayout!!!!!"); %orig; } %end %ctor { NSLog(@"[++++]www.chinapyg.com!!!!!"); } // iOS7 略有不同,对比下SBUIController.h即可找到。。 略。。
发表评论