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里的弹框