Sumi-Interactive / SIAlertView

An UIAlertView replacement with block syntax and fancy transition styles.
MIT License
2.52k stars 425 forks source link

Flicker on dismiss #73

Open jwardle opened 10 years ago

jwardle commented 10 years ago

The semi-transparent background / containerView behind the alert view box flickers on/off rapidly when the alert is dismissed.

Have seen this behaviour on iOS7 & iOS8 Simulator & devices.

SAJK111 commented 10 years ago
handicop commented 9 years ago

Has anyone experienced the same? or resolved?

iPhone 5, iOS 8.1.3 Recorded: https://dl.dropboxusercontent.com/u/6520543/sialert_statusbar_flickering.mov

- (IBAction)makeList:(id)sender {
    SIAlertView *alertView = [[SIAlertView alloc] initWithTitle:@"Make Playlists?" andMessage:@"Let's make!"];
    [alertView addButtonWithTitle:@"Ok"
                             type:SIAlertViewButtonTypeDestructive
                          handler:^(SIAlertView *alert) {

                              self.CreatedFileCount = 0;
                              self.MusicFileCount = 0;
                              self.HUD = self.prototypeHUD;
                              self.HUD.textLabel.text = @"Creating...";
                              [self.HUD showInView:self.navigationController.view];
                              [self performSelector:@selector(runProcess) withObject:nil afterDelay:1];

                          }];

    [alertView addButtonWithTitle:@"Cancel"
                             type:SIAlertViewButtonTypeCancel
                          handler:^(SIAlertView *alert) {
                                                        }];

    alertView.willShowHandler = ^(SIAlertView *alertView) {
        NSLog(@"%@, willShowHandler", alertView);
    };
    alertView.didShowHandler = ^(SIAlertView *alertView) {
        NSLog(@"%@, didShowHandler", alertView);
    };
    alertView.willDismissHandler = ^(SIAlertView *alertView) {
        NSLog(@"%@, willDismissHandler", alertView);
    };
    alertView.didDismissHandler = ^(SIAlertView *alertView) {
        NSLog(@"%@, didDismissHandler", alertView);
    };

    alertView.transitionStyle = SIAlertViewTransitionStyleFade ;

    [alertView show];

}