1

在IOS7之前,我用这个方法检查:</p>

UIWindow *window = [[UIApplication sharedApplication] keyWindow]; 

if ([window.subviews count] > 0) {

    for (UIView *alertView in window.subviews) {  

        if ([alertView isKindOfClass:[UIAlertView class]]) {

            NSLog(@"it is alertView!");       
        }    
    } 
} 

但是,在IOS7中,它不起作用,我现在该怎么办;

4

0 回答 0