I've got a problem, I added Flurry SDK in my iOS app and want to show a full screen add each time when the user click in the "Ok" button of an uiAlertView. The problem is that it doesn't work.
So, I tried try to do it without the AlertView and it works perfectly.
Someone knows why it doesn't work after clicking on an AlertView.
// The call of the alertview
UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"TitlePopupNewGame", nil) message:nil delegate:self cancelButtonTitle:NSLocalizedString(@"CancelPopupNewGame", nil) otherButtonTitles:NSLocalizedString(@"YesPopupNewGame", nil), nil];
myAlert.tag = 1;
myAlert.delegate = self;
[myAlert show];
// Alertview method
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (alertView.tag == 1 && buttonIndex == 0){
[self showInterstitial];
}
}
// ShowInterstitial method
-(void) showInterstitial{
if ([FlurryAds adReadyForSpace: @"Full screen banner"]) {
[FlurryAds displayAdForSpace: @"Full screen banner"
onView:mv];
[FlurryAds fetchAdForSpace:@"Full screen banner"
frame:mv.frame size:FULLSCREEN];
} else {
// fetch an ad
[FlurryAds fetchAdForSpace:@"Full screen banner"
frame:mv.frame size:FULLSCREEN];
}
}
Thanks