-
-
[求助] How to hook UIAlertController
-
发表于:
2017-6-23 11:53
5504
-
[求助] How to hook UIAlertController
@class UIAlertController;
CHDeclareClass(UIAlertController);
CHOptimizedMethod1(self, void, UIAlertController, viewDidAppear, BOOL, animated){
NSLog(@"UIAlertController viewDidAppear");
CHSuper1(UIAlertController, viewDidAppear, animated);
}
CHConstructor // code block that runs immediately upon load
{
@autoreleasepool
{
CHLoadLateClass(UIAlertController);
CHHook1(UIAlertController, viewDidAppear);
}
}
以上写法hook 不到,请大神帮忙。
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课