Hook弹框


#1

Class UIAlertManager = objc_getClass("_UIAlertManager");
UIAlertView *topMostAlert = [UIAlertManager performSelector:@selector(topMostAlert)];
while (topMostAlert) {
[topMostAlert dismissWithClickedButtonIndex:0 animated:NO];
topMostAlert = [UIAlertManager performSelector:@selector(topMostAlert)];
}

这段代码 hook不到提示框 去除app里的弹框


#2

弹的什么框? 代码在哪个进程跑的?


#3

我想去掉app里的弹框 UIAlertView


#4

你这个代码长得不像 hook 啊……