donobono / DoAlertView

An replacement for UIAlertView : block-based, customizable theme, easy to use with image or map
MIT License
94 stars 15 forks source link

Touch is disabled after Yes button taped #2

Closed IamAliSufyan closed 10 years ago

IamAliSufyan commented 10 years ago

Great Work!

I am trying to integrate this amazing tool into my project. I took code from your sample app. _vAlert = [[DoAlertView alloc] init]; _vAlert.nAnimationType = DoTransitionStyleLine; _vAlert.dRound = 0.0;

            _vAlert.bDestructive = NO;
            [_vAlert doYesNo:@"Title"
                        body:@"Here’s a snippet of code that illustrates how the whole process works"
                        yes:^(DoAlertView *alertView) {

                            NSLog(@"Yeeeeeeeeeeeees!!!!");

[[iRate sharedInstance] promptIfNetworkAvailable];

                        } no:^(DoAlertView *alertView) {

                            NSLog(@"Noooooooooooooo!!!!");

                        }];
            _vAlert = nil;

This code brings an alert, but it keeps blinking sometime and on Yes button click I am calling iRate for app review but the buttons on iRate buttons are not being touched.

iRate was working fine with WCAlertView. I reverted back to WCAlertView and it still working

donobono commented 10 years ago

I moved block handlers after animation is end and pushed fixed source.. Thank you for your feedback.. :-)

IamAliSufyan commented 10 years ago

@donobono Thanks for this lovely control!